We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f5a642 + e6be218 commit dbd589bCopy full SHA for dbd589b
clang/test/CodeGen/RISCV/builtin-cpu-is-error.c
@@ -0,0 +1,8 @@
1
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
2
+// RUN: not %clang_cc1 -triple riscv64-unknown-linux-gnu -emit-llvm %s -o - 2>&1 \
3
+// RUN: | FileCheck %s
4
+
5
+// CHECK: error: invalid cpu name for builtin
6
+int test_cpu_is_invalid_cpu() {
7
+ return __builtin_cpu_is("generic-rv64");
8
+}
0 commit comments