1 // RUN: %clang_cc1 -triple riscv64 -target-feature +v %s -emit-llvm -o - \
2 // RUN: 2>&1 | FileCheck %s
4 #pragma clang riscv intrinsic vvvv
5 // CHECK: warning: unexpected argument 'vvvv' to '#pragma riscv'; expected 'vector' or 'sifive_vector' [-Wignored-pragmas]
7 #pragma clang riscv what + 3241
8 // CHECK: warning: unexpected argument 'what' to '#pragma riscv'; expected 'intrinsic' [-Wignored-pragmas]
9 #pragma clang riscv int i = 12;
10 // CHECK: warning: unexpected argument 'int' to '#pragma riscv'; expected 'intrinsic' [-Wignored-pragmas]
11 #pragma clang riscv intrinsic vector bar
12 // CHECK: warning: extra tokens at end of '#pragma clang riscv intrinsic' - ignored [-Wignored-pragmas]
21 // Make sure no more warnings
22 // CHECK-NOT: warning: