Skip to content

Commit

Permalink
[Clang] Actually fix tests for __builtin_vectorelements (#69589)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lawben committed Oct 19, 2023
1 parent 0b80288 commit 3d7802d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions clang/test/CodeGen/builtin_vectorelements.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// RUN: %clang_cc1 -O1 -triple x86_64 %s -emit-llvm -disable-llvm-passes -o - | FileCheck --check-prefixes=CHECK %s

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

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

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

/// Note that this does not make sense to check for x86 SIMD types, because
Expand Down
2 changes: 1 addition & 1 deletion clang/test/SemaCXX/builtin_vectorelements.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple x86_64 -std=c++20 -fsyntax-only -verify -disable-llvm-passes %s

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

template <typename T>
Expand Down

0 comments on commit 3d7802d

Please sign in to comment.