[clang] 570995e - [clang][test][RISCV] Add RISC-V to clang/test/Sema/Float16.c

Alex Bradbury via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 1 03:34:04 PST 2023


Author: Alex Bradbury
Date: 2023-03-01T11:33:30Z
New Revision: 570995eba2f93d639e69b6b12817d44a3b26cc72

URL: https://github.com/llvm/llvm-project/commit/570995eba2f93d639e69b6b12817d44a3b26cc72
DIFF: https://github.com/llvm/llvm-project/commit/570995eba2f93d639e69b6b12817d44a3b26cc72.diff

LOG: [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.

Added: 
    

Modified: 
    clang/test/Sema/Float16.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Sema/Float16.c b/clang/test/Sema/Float16.c
index 26c604fed27aa..9269a0ded4eb9 100644
--- a/clang/test/Sema/Float16.c
+++ b/clang/test/Sema/Float16.c
@@ -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 at +2{{_Float16 is not supported on this target}}


        


More information about the cfe-commits mailing list