[clang][test][RISCV] Add RISC-V to clang/test/Sema/Float16.c
authorAlex Bradbury <asb@igalia.com>
Wed, 1 Mar 2023 11:31:15 +0000 (11:31 +0000)
committerAlex Bradbury <asb@igalia.com>
Wed, 1 Mar 2023 11:33:30 +0000 (11:33 +0000)
Since D105001, HasFloat16 was unconditionally set to true for RISC-V.
This patch adds test coverage for this.

clang/test/Sema/Float16.c

index 26c604f..9269a0d 100644 (file)
@@ -4,6 +4,8 @@
 // RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE
 // RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE
 // RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
+// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv32 %s -DHAVE
+// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv64 %s -DHAVE
 
 #ifndef HAVE
 // expected-error@+2{{_Float16 is not supported on this target}}