From 570995eba2f93d639e69b6b12817d44a3b26cc72 Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Wed, 1 Mar 2023 11:31:15 +0000 Subject: [PATCH] [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. --- clang/test/Sema/Float16.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/test/Sema/Float16.c b/clang/test/Sema/Float16.c index 26c604f..9269a0d 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}} -- 2.7.4