clang: Fix excessively strict test requirements
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 12 Jan 2023 14:09:46 +0000 (09:09 -0500)
committerMatt Arsenault <arsenm2@gmail.com>
Thu, 12 Jan 2023 18:00:49 +0000 (13:00 -0500)
At most this requires x86 as it's used in the run lines, it
doesn't require a linux host.

clang/test/CodeGenCXX/clang-sections-1.cpp
clang/test/OpenMP/debug_private.c
clang/test/OpenMP/debug_task_shared.c
clang/test/OpenMP/debug_threadprivate_copyin.c
clang/test/OpenMP/outlined_artificial.c

index 5dbfb0a..8e1361e 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -triple x86_64-linux -emit-llvm -o - %s | FileCheck %s --check-prefix=LLVM
 // RUN: %clang_cc1 -triple x86_64-linux         -S -o - %s | FileCheck %s --check-prefix=ASM
 // Actually, any ELF target would do
-// REQUIRES: x86_64-linux
+// REQUIRES: x86-registered-target
 
 #pragma clang section bss = "B$$" data = "d@t@" rodata = "r0d@t@"
 
index a17dd45..e1d095b 100644 (file)
@@ -1,7 +1,7 @@
 // This testcase checks emission of debug info for variables inside
 // private/firstprivate/lastprivate.
 
-// REQUIRES: x86_64-linux
+// REQUIRES: x86-registered-target
 
 // RUN: %clang_cc1 -debug-info-kind=constructor -x c -verify -triple x86_64-pc-linux-gnu -fopenmp -emit-llvm %s -o - | FileCheck %s
 // RUN: %clang_cc1 -debug-info-kind=line-directives-only -x c -verify -triple x86_64-pc-linux-gnu -fopenmp -emit-llvm %s -o - | FileCheck %s --check-prefix=NEG
index e2259c5..7bbd080 100644 (file)
@@ -1,7 +1,7 @@
 // This testcase checks emission of debug info for variables
 // inside shared clause of task construct.
 
-// REQUIRES: x86_64-linux
+// REQUIRES: x86-registered-target
 
 // RUN: %clang_cc1 -debug-info-kind=constructor -DSHARED -x c -verify -triple x86_64-pc-linux-gnu -fopenmp -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK
 // RUN: %clang_cc1 -debug-info-kind=constructor -x c -verify -triple x86_64-pc-linux-gnu -fopenmp -emit-llvm %s -o - | FileCheck %s --check-prefix=NEG
index bb0b76d..56e1f97 100644 (file)
@@ -1,7 +1,7 @@
 // This testcase checks emission of debug info for threadprivate variables
 // present in any clause of OpenMP construct.
 
-// REQUIRES: x86_64-linux
+// REQUIRES: x86-registered-target
 
 // RUN: %clang_cc1 -debug-info-kind=constructor -x c -verify -triple x86_64-pc-linux-gnu -fopenmp -emit-llvm %s -o - | FileCheck %s
 // expected-no-diagnostics
index 4c997ef..20b10f2 100644 (file)
@@ -1,7 +1,7 @@
 // This testcase checks emission of DIFlagArtificial flag for outlined
 // subroutines generated by compiler.
 
-// REQUIRES: x86_64-linux
+// REQUIRES: x86-registered-target
 
 // RUN: %clang_cc1 -debug-info-kind=constructor -x c -verify -triple x86_64-pc-linux-gnu -fopenmp -emit-llvm %s -o - | FileCheck %s
 // expected-no-diagnostics