Skip to content

Commit 570995e

Browse files
committed
[clang][test][RISCV] Add RISC-V to clang/test/Sema/Float16.c
Since D105001, HasFloat16 was unconditionally set to true for RISC-V. This patch adds test coverage for this.
1 parent 22b49fc commit 570995e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/test/Sema/Float16.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE
55
// RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE
66
// RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
7+
// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv32 %s -DHAVE
8+
// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv64 %s -DHAVE
79

810
#ifndef HAVE
911
// expected-error@+2{{_Float16 is not supported on this target}}

0 commit comments

Comments
 (0)