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@+2{{_Float16 is not supported on this target}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits