|
1 |
| -// RUN: %clang_cc1 -O1 -triple aarch64 -target-feature +neon %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,NEON %s |
2 |
| -// RUN: %clang_cc1 -O1 -triple aarch64 -target-feature +sve %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,SVE %s |
3 |
| -// RUN: %clang_cc1 -O1 -triple riscv64 -target-feature +v %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,RISCV %s |
| 1 | +// RUN: %clang_cc1 -O1 -triple x86_64 %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK %s |
4 | 2 |
|
5 |
| -// Note that this does not make sense to check for x86 SIMD types, because |
6 |
| -// __m128i, __m256i, and __m512i do not specify the element type. There are no |
7 |
| -// "logical" number of elements in them. |
| 3 | +// REQUIRES: target=aarch64-{{.*}} |
| 4 | +// RUN: %clang_cc1 -O1 -triple aarch64 -target-feature +neon %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,NEON %s |
| 5 | + |
| 6 | +// REQUIRES: target=aarch64-{{.*}} |
| 7 | +// RUN: %clang_cc1 -O1 -triple aarch64 -target-feature +sve %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,SVE %s |
| 8 | + |
| 9 | +// REQUIRES: target=riscv64{{.*}} |
| 10 | +// RUN: %clang_cc1 -O1 -triple riscv64 -target-feature +v %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,RISCV %s |
| 11 | + |
| 12 | +/// Note that this does not make sense to check for x86 SIMD types, because |
| 13 | +/// __m128i, __m256i, and __m512i do not specify the element type. There are no |
| 14 | +/// "logical" number of elements in them. |
8 | 15 |
|
9 | 16 | typedef int int1 __attribute__((vector_size(4)));
|
10 | 17 | typedef int int4 __attribute__((vector_size(16)));
|
@@ -56,7 +63,6 @@ int test_builtin_vectorelements_multiply_constant() {
|
56 | 63 | return __builtin_vectorelements(int16) * 2;
|
57 | 64 | }
|
58 | 65 |
|
59 |
| - |
60 | 66 | #if defined(__ARM_NEON)
|
61 | 67 | #include <arm_neon.h>
|
62 | 68 |
|
|
0 commit comments