[clang] [clang][RISCV] Add REQRUIES to riscv-intrinsic-exts.c (PR #195605)

Brandon Wu via cfe-commits cfe-commits at lists.llvm.org
Mon May 4 00:49:09 PDT 2026


https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/195605

None

>From 095672d965cb284afc054458bba91aca7b47332c Mon Sep 17 00:00:00 2001
From: Brandon Wu <brandon.wu at sifive.com>
Date: Mon, 4 May 2026 15:47:26 +0800
Subject: [PATCH] [clang][RISCV] Add REQRUIES to riscv-intrinsic-exts.c

---
 clang/test/Preprocessor/riscv-intrinsic-exts.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clang/test/Preprocessor/riscv-intrinsic-exts.c b/clang/test/Preprocessor/riscv-intrinsic-exts.c
index 133b2c3600a1e..448c33a467cee 100644
--- a/clang/test/Preprocessor/riscv-intrinsic-exts.c
+++ b/clang/test/Preprocessor/riscv-intrinsic-exts.c
@@ -2,6 +2,8 @@
 // These macros indicate which extensions have intrinsics supported by the
 // toolchain, regardless of whether they are currently enabled via -march.
 
+// REQUIRES: riscv-registered-target
+
 // RUN: %clang_cc1 -triple riscv32 -target-feature +zihintntl -E -dM %s -o - \
 // RUN:   | FileCheck --check-prefix=CHECK-INTRINSIC-EXTS %s
 // RUN: %clang_cc1 -triple riscv64 -target-feature +zihintntl -E -dM %s -o - \



More information about the cfe-commits mailing list