From: Matt Arsenault Date: Thu, 12 Jan 2023 14:09:46 +0000 (-0500) Subject: clang: Fix excessively strict test requirements X-Git-Tag: upstream/17.0.6~21176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edbfc10b48651c94e0c3c774f2a45011b36796e1;p=platform%2Fupstream%2Fllvm.git clang: Fix excessively strict test requirements At most this requires x86 as it's used in the run lines, it doesn't require a linux host. --- diff --git a/clang/test/CodeGenCXX/clang-sections-1.cpp b/clang/test/CodeGenCXX/clang-sections-1.cpp index 5dbfb0a..8e1361e 100644 --- a/clang/test/CodeGenCXX/clang-sections-1.cpp +++ b/clang/test/CodeGenCXX/clang-sections-1.cpp @@ -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@" diff --git a/clang/test/OpenMP/debug_private.c b/clang/test/OpenMP/debug_private.c index a17dd45..e1d095b 100644 --- a/clang/test/OpenMP/debug_private.c +++ b/clang/test/OpenMP/debug_private.c @@ -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 diff --git a/clang/test/OpenMP/debug_task_shared.c b/clang/test/OpenMP/debug_task_shared.c index e2259c5..7bbd080 100644 --- a/clang/test/OpenMP/debug_task_shared.c +++ b/clang/test/OpenMP/debug_task_shared.c @@ -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 diff --git a/clang/test/OpenMP/debug_threadprivate_copyin.c b/clang/test/OpenMP/debug_threadprivate_copyin.c index bb0b76d..56e1f97 100644 --- a/clang/test/OpenMP/debug_threadprivate_copyin.c +++ b/clang/test/OpenMP/debug_threadprivate_copyin.c @@ -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 diff --git a/clang/test/OpenMP/outlined_artificial.c b/clang/test/OpenMP/outlined_artificial.c index 4c997ef..20b10f2 100644 --- a/clang/test/OpenMP/outlined_artificial.c +++ b/clang/test/OpenMP/outlined_artificial.c @@ -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