Skip to content

Commit 3d7802d

Browse files
authored
[Clang] Actually fix tests for __builtin_vectorelements (#69589)
In #69582, I accidentally disabled all tests for the changed introduced in #69010. This change should use the correct `REQUIRES` syntax to en-/disable target-specific tests.
1 parent 0b80288 commit 3d7802d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/test/CodeGen/builtin_vectorelements.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// RUN: %clang_cc1 -O1 -triple x86_64 %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK %s
22

3-
// REQUIRES: target=aarch64-{{.*}}
3+
// REQUIRES: aarch64-registered-target
44
// RUN: %clang_cc1 -O1 -triple aarch64 -target-feature +neon %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,NEON %s
55

6-
// REQUIRES: target=aarch64-{{.*}}
6+
// REQUIRES: aarch64-registered-target
77
// RUN: %clang_cc1 -O1 -triple aarch64 -target-feature +sve %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,SVE %s
88

9-
// REQUIRES: target=riscv64{{.*}}
9+
// REQUIRES: riscv-registered-target
1010
// RUN: %clang_cc1 -O1 -triple riscv64 -target-feature +v %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK,RISCV %s
1111

1212
/// Note that this does not make sense to check for x86 SIMD types, because

clang/test/SemaCXX/builtin_vectorelements.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -triple x86_64 -std=c++20 -fsyntax-only -verify -disable-llvm-passes %s
22

3-
// REQUIRES: target=aarch64-{{.*}}
3+
// REQUIRES: aarch64-registered-target
44
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -std=c++20 -fsyntax-only -verify -disable-llvm-passes %s
55

66
template <typename T>

0 commit comments

Comments
 (0)