llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-offload

Author: Matt Arsenault (arsenm)

<details>
<summary>Changes</summary>

Use an explicit linux triple for the host target instead of using the
default/host target and marking most every other system as unsupported.
Fixes not running these tests on macos.

Co-authored-by: Claude (Opus 4.8)

---

Patch is 48.44 KiB, truncated to 20.00 KiB below, full version: 
https://github.com/llvm/llvm-project/pull/209720.diff


7 Files Affected:

- (modified) clang/test/Driver/clang-offload-bundler-multi-compress.c (+1-2) 
- (modified) clang/test/OffloadTools/clang-offload-bundler/asserts-on.c (+5-6) 
- (modified) clang/test/OffloadTools/clang-offload-bundler/basic.c (+72-73) 
- (modified) 
clang/test/OffloadTools/clang-offload-bundler/fat-archive-unbundle-ext.c (+3-4) 
- (modified) clang/test/OffloadTools/clang-offload-bundler/standardize.c (+2-4) 
- (modified) clang/test/OffloadTools/clang-offload-bundler/zlib.c (+4-4) 
- (modified) clang/test/OffloadTools/clang-offload-bundler/zstd.c (+4-4) 


``````````diff
diff --git a/clang/test/Driver/clang-offload-bundler-multi-compress.c 
b/clang/test/Driver/clang-offload-bundler-multi-compress.c
index fce5698d8aaf0..b77ee177cd4bb 100644
--- a/clang/test/Driver/clang-offload-bundler-multi-compress.c
+++ b/clang/test/Driver/clang-offload-bundler-multi-compress.c
@@ -1,6 +1,5 @@
 // REQUIRES: x86-registered-target
 // REQUIRES: zlib || zstd
-// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, 
target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
 
 // Tests that clang-offload-bundler --list correctly enumerates all bundle IDs
 // from multiple concatenated compressed (CCOB) fat binary blobs stored in the
@@ -61,7 +60,7 @@
 // Build a host object and inject the concatenated blob as its .hip_fatbin
 // section, replicating the ELF layout of a fat shared library.
 //
-// RUN: %clang -O0 -target %itanium_abi_triple %s -c -o %t.host.o
+// RUN: %clang -O0 -target x86_64-unknown-linux-gnu %s -c -o %t.host.o
 // RUN: llvm-objcopy \
 // RUN:   --add-section=.hip_fatbin=%t.multi.fatbin \
 // RUN:   --set-section-flags=.hip_fatbin=alloc \
diff --git a/clang/test/OffloadTools/clang-offload-bundler/asserts-on.c 
b/clang/test/OffloadTools/clang-offload-bundler/asserts-on.c
index 0710d2f6bf279..2afeb07ac73ba 100644
--- a/clang/test/OffloadTools/clang-offload-bundler/asserts-on.c
+++ b/clang/test/OffloadTools/clang-offload-bundler/asserts-on.c
@@ -1,9 +1,8 @@
 // REQUIRES: x86-registered-target
 // REQUIRES: asserts
-// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, 
target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
 
 // Generate the file we can bundle.
-// RUN: %clang -O0 -target %itanium_abi_triple %s -c -o %t.o
+// RUN: %clang -O0 -target x86_64-unknown-linux-gnu %s -c -o %t.o
 
 //
 // Generate a couple of files to bundle with.
@@ -15,10 +14,10 @@
 // Check code object compatibility for archive unbundling
 //
 // Create few code object bundles and archive them to create an input archive
-// RUN: clang-offload-bundler -type=o 
-targets=host-%itanium_abi_triple,openmp-amdgcn-amd-amdhsa--gfx906,openmp-amdgcn-amd-amdhsa--gfx908
 -input=%t.o -input=%t.tgt1 -input=%t.tgt2 -output=%t.simple.bundle
-// RUN: clang-offload-bundler -type=o 
-targets=host-%itanium_abi_triple,openmp-amdgcn-amd-amdhsa--gfx906:sramecc+:xnack+,openmp-amdgcn-amd-amdhsa--gfx908:sramecc+:xnack+
 -inputs=%t.o,%t.tgt1,%t.tgt1 -outputs=%t.targetID1.bundle
-// RUN: clang-offload-bundler -type=o 
-targets=host-%itanium_abi_triple,openmp-amdgcn-amd-amdhsa--gfx906:sramecc+:xnack-,openmp-amdgcn-amd-amdhsa--gfx908:sramecc+:xnack-
 -inputs=%t.o,%t.tgt1,%t.tgt1 -outputs=%t.targetID2.bundle
-// RUN: clang-offload-bundler -type=o 
-targets=host-%itanium_abi_triple,openmp-amdgcn-amd-amdhsa--gfx906:xnack-,openmp-amdgcn-amd-amdhsa--gfx908:xnack-
 -inputs=%t.o,%t.tgt1,%t.tgt1 -outputs=%t.targetID3.bundle
+// RUN: clang-offload-bundler -type=o 
-targets=host-x86_64-unknown-linux-gnu,openmp-amdgcn-amd-amdhsa--gfx906,openmp-amdgcn-amd-amdhsa--gfx908
 -input=%t.o -input=%t.tgt1 -input=%t.tgt2 -output=%t.simple.bundle
+// RUN: clang-offload-bundler -type=o 
-targets=host-x86_64-unknown-linux-gnu,openmp-amdgcn-amd-amdhsa--gfx906:sramecc+:xnack+,openmp-amdgcn-amd-amdhsa--gfx908:sramecc+:xnack+
 -inputs=%t.o,%t.tgt1,%t.tgt1 -outputs=%t.targetID1.bundle
+// RUN: clang-offload-bundler -type=o 
-targets=host-x86_64-unknown-linux-gnu,openmp-amdgcn-amd-amdhsa--gfx906:sramecc+:xnack-,openmp-amdgcn-amd-amdhsa--gfx908:sramecc+:xnack-
 -inputs=%t.o,%t.tgt1,%t.tgt1 -outputs=%t.targetID2.bundle
+// RUN: clang-offload-bundler -type=o 
-targets=host-x86_64-unknown-linux-gnu,openmp-amdgcn-amd-amdhsa--gfx906:xnack-,openmp-amdgcn-amd-amdhsa--gfx908:xnack-
 -inputs=%t.o,%t.tgt1,%t.tgt1 -outputs=%t.targetID3.bundle
 // RUN: llvm-ar cr %t.input-archive.a %t.simple.bundle %t.targetID1.bundle 
%t.targetID2.bundle %t.targetID3.bundle
 
 // Tests to check compatibility between Bundle Entry ID formats i.e. between 
presence/absence of extra hyphen in case of missing environment field
diff --git a/clang/test/OffloadTools/clang-offload-bundler/basic.c 
b/clang/test/OffloadTools/clang-offload-bundler/basic.c
index 6466e1870dc98..21ac93cc66245 100644
--- a/clang/test/OffloadTools/clang-offload-bundler/basic.c
+++ b/clang/test/OffloadTools/clang-offload-bundler/basic.c
@@ -1,22 +1,21 @@
 // REQUIRES: x86-registered-target
-// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, 
target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
 
 //
 // Generate all the types of files we can bundle.
 //
-// RUN: %clang -O0 -target %itanium_abi_triple %s -E -o %t.i
-// RUN: %clangxx -O0 -target %itanium_abi_triple -x c++ %s -E -o %t.ii
-// RUN: %clang -O0 -target %itanium_abi_triple %s -S -emit-llvm -o %t.ll
-// RUN: %clang -O0 -target %itanium_abi_triple %s -c -emit-llvm -o %t.bc
-// RUN: %clang -O0 -target %itanium_abi_triple %s -S -o %t.s
-// RUN: %clang -O0 -target %itanium_abi_triple %s -c -o %t.o
+// RUN: %clang -O0 -target x86_64-unknown-linux-gnu %s -E -o %t.i
+// RUN: %clangxx -O0 -target x86_64-unknown-linux-gnu -x c++ %s -E -o %t.ii
+// RUN: %clang -O0 -target x86_64-unknown-linux-gnu %s -S -emit-llvm -o %t.ll
+// RUN: %clang -O0 -target x86_64-unknown-linux-gnu %s -c -emit-llvm -o %t.bc
+// RUN: %clang -O0 -target x86_64-unknown-linux-gnu %s -S -o %t.s
+// RUN: %clang -O0 -target x86_64-unknown-linux-gnu %s -c -o %t.o
 // RUN: obj2yaml %t.o > %t.o.yaml
-// RUN: %clang -O0 -target %itanium_abi_triple %s -emit-ast -o %t.ast
+// RUN: %clang -O0 -target x86_64-unknown-linux-gnu %s -emit-ast -o %t.ast
 
 // RUN: echo 'void a() {}' >%t.a.cpp
 // RUN: echo 'void b() {}' >%t.b.cpp
-// RUN: %clang -target %itanium_abi_triple %t.a.cpp -c -o %t.a.o
-// RUN: %clang -target %itanium_abi_triple %t.b.cpp -c -o %t.b.o
+// RUN: %clang -target x86_64-unknown-linux-gnu %t.a.cpp -c -o %t.a.o
+// RUN: %clang -target x86_64-unknown-linux-gnu %t.b.cpp -c -o %t.b.o
 //
 // Remove .llvm_addrsig section since its offset changes after llvm-objcopy
 // removes clang-offload-bundler sections, therefore not good for comparison.
@@ -72,30 +71,30 @@
 //
 // Check errors.
 //
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i -unbundle 2>&1 | 
FileCheck %s --check-prefix CK-ERR1
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i -unbundle 2>&1 | 
FileCheck %s --check-prefix CK-ERR1
 // CK-ERR1: error: only one input file supported in unbundling mode
 
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -output=%t.bundle.i -unbundle 2>&1 | FileCheck %s --check-prefix 
CK-ERR1A
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -output=%t.bundle.i -unbundle 2>&1 | FileCheck %s --check-prefix 
CK-ERR1A
 // CK-ERR1A: error: number of output files and targets should match in 
unbundling mode
 
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -input=%t.i 
-input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck %s 
--check-prefix CK-ERR2
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -output=%t.bundle.i 2>&1 | FileCheck %s 
--check-prefix CK-ERR2
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu 
-input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck 
%s --check-prefix CK-ERR2
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -output=%t.bundle.i 2>&1 | FileCheck %s 
--check-prefix CK-ERR2
 // CK-ERR2: error: number of input files and targets should match in bundling 
mode
 
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.i -output=%t.tgt1 -output=%t.tgt2 -input=%t.bundle.i 2>&1 | 
FileCheck %s --check-prefix CK-ERR3
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.i -output=%t.tgt1 -output=%t.tgt2 -input=%t.bundle.i 2>&1 | 
FileCheck %s --check-prefix CK-ERR3
 // CK-ERR3: error: only one output file supported in bundling mode
 
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -output=%t.i 
-output=%t.tgt1 -output=%t.tgt2 -input=%t.bundle.i -unbundle 2>&1 | FileCheck 
%s --check-prefix CK-ERR4
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.i -output=%t.tgt1 -input=%t.bundle.i -unbundle 2>&1 | FileCheck %s 
--check-prefix CK-ERR4
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu 
-output=%t.i -output=%t.tgt1 -output=%t.tgt2 -input=%t.bundle.i -unbundle 2>&1 
| FileCheck %s --check-prefix CK-ERR4
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.i -output=%t.tgt1 -input=%t.bundle.i -unbundle 2>&1 | FileCheck %s 
--check-prefix CK-ERR4
 // CK-ERR4: error: number of output files and targets should match in 
unbundling mode
 
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2.notexist -output=%t.bundle.i 2>&1 | \
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2.notexist -output=%t.bundle.i 2>&1 | \
 // RUN:   FileCheck %s -DFILE=%t.tgt2.notexist -DMSG=%errc_ENOENT 
--check-prefix CK-ERR5
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.i -output=%t.tgt1 -output=%t.tgt2 -input=%t.bundle.i.notexist 
-unbundle 2>&1 | \
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.i -output=%t.tgt1 -output=%t.tgt2 -input=%t.bundle.i.notexist 
-unbundle 2>&1 | \
 // RUN:   FileCheck %s -DFILE=%t.bundle.i.notexist -DMSG=%errc_ENOENT 
--check-prefix CK-ERR5
 // CK-ERR5: error: '[[FILE]]': [[MSG]]
 
-// RUN: not clang-offload-bundler -type=invalid 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck 
%s -DTYPE=invalid --check-prefix CK-ERR6
+// RUN: not clang-offload-bundler -type=invalid 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck 
%s -DTYPE=invalid --check-prefix CK-ERR6
 // CK-ERR6: error: '[[TYPE]]': invalid file type specified
 
 // RUN: not clang-offload-bundler 2>&1 | FileCheck %s --check-prefix CK-ERR7
@@ -119,26 +118,26 @@
 // RUN: not clang-offload-bundler -type=i 
-targets=openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu 
-input=%t.i -input=%t.tgt1 -output=%t.bundle.i 2>&1 | FileCheck %s 
--check-prefix CK-ERR9A
 // CK-ERR9A: error: expecting exactly one host target but got 0
 
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck 
%s --check-prefix CK-ERR9B
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,host-x86_64-unknown-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck 
%s --check-prefix CK-ERR9B
 // CK-ERR9B: error: Duplicate targets are not allowed
 
 // RUN: not clang-offload-bundler -type=a 
-targets=hxst-powerpcxxle-ibm-linux-gnu,openxp-pxxerpc64le-ibm-linux-gnu,xpenmp-x86_xx-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck 
%s --check-prefix CK-ERR10A
 // CK-ERR10A: error: Archive files are only supported for unbundling
 
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -inputs=%t.tgt1,%t.tgt2 -output=%t.bundle.i -unbundle 2>&1 | 
FileCheck %s --check-prefix CK-ERR11A
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -inputs=%t.tgt1,%t.tgt2 -output=%t.bundle.i -unbundle 2>&1 | 
FileCheck %s --check-prefix CK-ERR11A
 // CK-ERR11A: error: -inputs and -input cannot be used together, use only 
-input instead
 
-// RUN: not clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -output=%t.i 
-outputs=%t.tgt1,%t.tgt2 -input=%t.bundle.i -unbundle 2>&1 | FileCheck %s 
--check-prefix CK-ERR11B
+// RUN: not clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu 
-output=%t.i -outputs=%t.tgt1,%t.tgt2 -input=%t.bundle.i -unbundle 2>&1 | 
FileCheck %s --check-prefix CK-ERR11B
 // CK-ERR11B: error: -outputs and -output cannot be used together, use only 
-output instead
 
 //
 // Check text bundle. This is a readable format, so we check for the format we 
expect to find.
 //
-// RUN: clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle3.i
-// RUN: clang-offload-bundler -type=ii 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.ii -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle3.ii
-// RUN: clang-offload-bundler -type=ll 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.ll -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle3.ll
-// RUN: clang-offload-bundler -type=s 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.s -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle3.s
-// RUN: clang-offload-bundler -type=s 
-targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu
 -input=%t.tgt1 -input=%t.s -input=%t.tgt2 -output=%t.bundle3.unordered.s
+// RUN: clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle3.i
+// RUN: clang-offload-bundler -type=ii 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.ii -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle3.ii
+// RUN: clang-offload-bundler -type=ll 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.ll -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle3.ll
+// RUN: clang-offload-bundler -type=s 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.s -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle3.s
+// RUN: clang-offload-bundler -type=s 
-targets=openmp-powerpc64le-ibm-linux-gnu,host-x86_64-unknown-linux-gnu,openmp-x86_64-pc-linux-gnu
 -input=%t.tgt1 -input=%t.s -input=%t.tgt2 -output=%t.bundle3.unordered.s
 // RUN: FileCheck %s --input-file %t.bundle3.i --check-prefix CK-TEXTI
 // RUN: FileCheck %s --input-file %t.bundle3.ii --check-prefix CK-TEXTI
 // RUN: FileCheck %s --input-file %t.bundle3.ll --check-prefix CK-TEXTLL
@@ -193,32 +192,32 @@
 // Check text unbundle. Check if we get the exact same content that we bundled 
before for each file.
 //
 // RUN: clang-offload-bundler -type=i -input=%t.bundle3.i -list | FileCheck 
-check-prefix=CKLST %s
-// RUN: clang-offload-bundler -type=i 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.i -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.bundle3.i 
-unbundle
+// RUN: clang-offload-bundler -type=i 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.i -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.bundle3.i 
-unbundle
 // RUN: diff %t.i %t.res.i
 // RUN: diff %t.tgt1 %t.res.tgt1
 // RUN: diff %t.tgt2 %t.res.tgt2
 // RUN: clang-offload-bundler -type=i 
-targets=openmp-powerpc64le-ibm-linux-gnu -output=%t.res.tgt1 
-input=%t.bundle3.i -unbundle
 // RUN: diff %t.tgt1 %t.res.tgt1
 // RUN: clang-offload-bundler -type=ii -input=%t.bundle3.ii -list | FileCheck 
-check-prefix=CKLST %s
-// RUN: clang-offload-bundler -type=ii 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.ii -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.bundle3.ii 
-unbundle
+// RUN: clang-offload-bundler -type=ii 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.ii -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.bundle3.ii 
-unbundle
 // RUN: diff %t.ii %t.res.ii
 // RUN: diff %t.tgt1 %t.res.tgt1
 // RUN: diff %t.tgt2 %t.res.tgt2
 // RUN: clang-offload-bundler -type=ii -targets=openmp-x86_64-pc-linux-gnu 
-output=%t.res.tgt2 -input=%t.bundle3.ii -unbundle
 // RUN: diff %t.tgt2 %t.res.tgt2
 // RUN: clang-offload-bundler -type=ll -input=%t.bundle3.ll -list | FileCheck 
-check-prefix=CKLST %s
-// RUN: clang-offload-bundler -type=ll 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.ll -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.bundle3.ll 
-unbundle
+// RUN: clang-offload-bundler -type=ll 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.ll -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.bundle3.ll 
-unbundle
 // RUN: diff %t.ll %t.res.ll
 // RUN: diff %t.tgt1 %t.res.tgt1
 // RUN: diff %t.tgt2 %t.res.tgt2
 // RUN: clang-offload-bundler -type=ll 
-targets=openmp-powerpc64le-ibm-linux-gnu -output=%t.res.tgt1 
-input=%t.bundle3.ll -unbundle
 // RUN: diff %t.tgt1 %t.res.tgt1
 // RUN: clang-offload-bundler -type=s -input=%t.bundle3.s -list | FileCheck 
-check-prefix=CKLST %s
-// RUN: clang-offload-bundler -type=s 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.s -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.bundle3.s 
-unbundle
+// RUN: clang-offload-bundler -type=s 
-targets=host-x86_64-unknown-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.s -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.bundle3.s 
-unbundle
 // RUN: diff %t.s %t.res.s
 // RUN: diff %t.tgt1 %t.res.tgt1
 // RUN: diff %t.tgt2 %t.res.tgt2
-// RUN: clang-offload-bundler -type=s 
-targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu
 -output=%t.res.tgt1 -output=%t.res.s -output=%t.res.tgt2 -input=%t.bundle3.s 
-unbundle
+// RUN: clang-offload-bundler -type=s 
-targets=openmp-powerpc64le-ibm-linux-gnu,host-x86_64-unknown-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.tgt1 -output=%t.res.s -output=%t.res.tgt2 -input=%t.bundle3.s 
-unbundle
 // RUN: diff %t.s %t.res.s
 // RUN: diff %t.tgt1 %t.res.tgt1
 // RUN: diff %t.tgt2 %t.res.tgt2
@@ -227,11 +226,11 @@
 
 // Check if we can unbundle a file with no magic strings.
 // RUN: clang-offload-bundler -type=s -input=%t.s -list | FileCheck 
-check-prefix=CKLST2 --allow-empty %s
-// RUN: clang-offload-bundler -type=s 
-targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu
 -output=%t.res.s -output=%t.res.tgt1 -output=%t.res.tgt2 -input=%t.s -unbundle 
-allow-missing-bundles
+// RUN: clang-offload-bundler -type=s -targets=host-x86_64-unknown-linux...
[truncated]

``````````

</details>


https://github.com/llvm/llvm-project/pull/209720
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to