diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-05-17 23:32:31 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2023-05-17 23:32:31 -0700 |
commit | ac70712d5f1b466886dfcf14734fb7cc0d131d99 (patch) | |
tree | 276808192564cf912be62bb9127263817888e72b /clang/test/Sema/riscv-rvv-vector-trig-ops.c | |
parent | 7bbe512362edd1dbd3947ff71212f3ae815a0836 (diff) | |
download | llvm-ac70712d5f1b466886dfcf14734fb7cc0d131d99.zip llvm-ac70712d5f1b466886dfcf14734fb7cc0d131d99.tar.gz llvm-ac70712d5f1b466886dfcf14734fb7cc0d131d99.tar.bz2 |
[RISCV] Replace 'sve' with 'rvv' in some test file names. NFC
Diffstat (limited to 'clang/test/Sema/riscv-rvv-vector-trig-ops.c')
-rw-r--r-- | clang/test/Sema/riscv-rvv-vector-trig-ops.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/Sema/riscv-rvv-vector-trig-ops.c b/clang/test/Sema/riscv-rvv-vector-trig-ops.c new file mode 100644 index 0000000..35dc6d7 --- /dev/null +++ b/clang/test/Sema/riscv-rvv-vector-trig-ops.c @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -triple riscv64 -target-feature +f -target-feature +d \
+// RUN: -target-feature +v -target-feature +zfh -target-feature +experimental-zvfh \
+// RUN: -disable-O0-optnone -o - -fsyntax-only %s -verify
+// REQUIRES: riscv-registered-target
+
+#include <riscv_vector.h>
+
+
+vfloat32mf2_t test_sin_vv_i8mf8(vfloat32mf2_t v) {
+
+ return __builtin_elementwise_sin(v);
+ // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
+}
+
+vfloat32mf2_t test_cos_vv_i8mf8(vfloat32mf2_t v) {
+
+ return __builtin_elementwise_cos(v);
+ // expected-error@-1 {{1st argument must be a vector, integer or floating point type}}
+}
|