|  | 
| 52 | 52 | // Check errors. | 
| 53 | 53 | // | 
| 54 | 54 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i -unbundle 2>&1 | FileCheck %s --check-prefix CK-ERR1 | 
| 55 |  | -// CK-ERR1: error: only one input file supported in unbundling mode. | 
| 56 |  | -// CK-ERR1: error: number of output files and targets should match in unbundling mode. | 
|  | 55 | +// CK-ERR1: error: only one input file supported in unbundling mode | 
|  | 56 | +// CK-ERR1: error: number of output files and targets should match in unbundling mode | 
| 57 | 57 | 
 | 
| 58 | 58 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR2 | 
| 59 | 59 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR2 | 
| 60 |  | -// CK-ERR2: error: number of input files and targets should match in bundling mode. | 
|  | 60 | +// CK-ERR2: error: number of input files and targets should match in bundling mode | 
| 61 | 61 | 
 | 
| 62 | 62 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR3 | 
| 63 |  | -// CK-ERR3: error: only one output file supported in bundling mode. | 
| 64 |  | -// CK-ERR3: error: number of input files and targets should match in bundling mode. | 
|  | 63 | +// CK-ERR3: error: only one output file supported in bundling mode | 
|  | 64 | +// CK-ERR3: error: number of input files and targets should match in bundling mode | 
| 65 | 65 | 
 | 
| 66 | 66 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i -unbundle 2>&1 | FileCheck %s --check-prefix CK-ERR4 | 
| 67 | 67 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.i,%t.tgt1 -inputs=%t.bundle.i -unbundle 2>&1 | FileCheck %s --check-prefix CK-ERR4 | 
| 68 |  | -// CK-ERR4: error: number of output files and targets should match in unbundling mode. | 
|  | 68 | +// CK-ERR4: error: number of output files and targets should match in unbundling mode | 
| 69 | 69 | 
 | 
| 70 |  | -// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2.notexist -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR5 | 
| 71 |  | -// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i.notexist -unbundle 2>&1 | FileCheck %s --check-prefix CK-ERR5 | 
| 72 |  | -// CK-ERR5: error: Can't open file {{.+}}.notexist: {{N|n}}o such file or directory | 
|  | 70 | +// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2.notexist -outputs=%t.bundle.i 2>&1 | FileCheck %s -DFILE=%t.tgt2.notexist --check-prefix CK-ERR5 | 
|  | 71 | +// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i.notexist -unbundle 2>&1 | FileCheck %s -DFILE=%t.bundle.i.notexist --check-prefix CK-ERR5 | 
|  | 72 | +// CK-ERR5: error: '[[FILE]]': {{N|n}}o such file or directory | 
| 73 | 73 | 
 | 
| 74 |  | -// RUN: not clang-offload-bundler -type=invalid -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR6 | 
| 75 |  | -// CK-ERR6: error: invalid file type specified. | 
|  | 74 | +// RUN: not clang-offload-bundler -type=invalid -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s -DTYPE=invalid --check-prefix CK-ERR6 | 
|  | 75 | +// CK-ERR6: error: '[[TYPE]]': invalid file type specified | 
| 76 | 76 | 
 | 
| 77 | 77 | // RUN: not clang-offload-bundler 2>&1 | FileCheck %s --check-prefix CK-ERR7 | 
| 78 | 78 | // CK-ERR7-DAG: clang-offload-bundler: for the --type option: must be specified at least once! | 
|  | 
| 81 | 81 | // CK-ERR7-DAG: clang-offload-bundler: for the --targets option: must be specified at least once! | 
| 82 | 82 | 
 | 
| 83 | 83 | // RUN: not clang-offload-bundler -type=i -targets=hxst-powerpcxxle-ibm-linux-gnu,openxp-pxxerpc64le-ibm-linux-gnu,xpenmp-x86_xx-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR8 | 
| 84 |  | -// CK-ERR8: error: invalid target 'hxst-powerpcxxle-ibm-linux-gnu', unknown offloading kind 'hxst', unknown target triple 'powerpcxxle-ibm-linux-gnu'. | 
| 85 |  | -// CK-ERR8: error: invalid target 'openxp-pxxerpc64le-ibm-linux-gnu', unknown offloading kind 'openxp', unknown target triple 'pxxerpc64le-ibm-linux-gnu'. | 
| 86 |  | -// CK-ERR8: error: invalid target 'xpenmp-x86_xx-pc-linux-gnu', unknown offloading kind 'xpenmp', unknown target triple 'x86_xx-pc-linux-gnu'. | 
|  | 84 | +// CK-ERR8: error: invalid target 'hxst-powerpcxxle-ibm-linux-gnu', unknown offloading kind 'hxst', unknown target triple 'powerpcxxle-ibm-linux-gnu' | 
|  | 85 | +// CK-ERR8: error: invalid target 'openxp-pxxerpc64le-ibm-linux-gnu', unknown offloading kind 'openxp', unknown target triple 'pxxerpc64le-ibm-linux-gnu' | 
|  | 86 | +// CK-ERR8: error: invalid target 'xpenmp-x86_xx-pc-linux-gnu', unknown offloading kind 'xpenmp', unknown target triple 'x86_xx-pc-linux-gnu' | 
| 87 | 87 | 
 | 
| 88 | 88 | // RUN: not clang-offload-bundler -type=i -targets=openmp-powerpc64le-linux,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9A | 
| 89 | 89 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9B | 
| 90 |  | -// CK-ERR9A: error: expecting exactly one host target but got 0. | 
| 91 |  | -// CK-ERR9B: error: expecting exactly one host target but got 2. | 
|  | 90 | +// CK-ERR9A: error: expecting exactly one host target but got 0 | 
|  | 91 | +// CK-ERR9B: error: expecting exactly one host target but got 2 | 
| 92 | 92 | 
 | 
| 93 | 93 | // | 
| 94 | 94 | // Check text bundle. This is a readable format, so we check for the format we expect to find. | 
|  | 
0 commit comments