Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / hipstdpar.c
blob69c5b177d170cd8c13a92072a7530213992c98d2
1 // REQUIRES: x86-registered-target
2 // REQUIRES: amdgpu-registered-target
3 // REQUIRES: system-linux
4 // XFAIL: target={{.*}}hexagon{{.*}}
5 // XFAIL: target={{.*}}-scei{{.*}}
6 // XFAIL: target={{.*}}-sie{{.*}}
8 // RUN: not %clang -### --hipstdpar -nogpulib -nogpuinc --compile %s 2>&1 | \
9 // RUN: FileCheck --check-prefix=HIPSTDPAR-MISSING-LIB %s
10 // RUN: %clang -### --hipstdpar --hipstdpar-path=%S/Inputs/hipstdpar \
11 // RUN: --hipstdpar-thrust-path=%S/Inputs/hipstdpar/thrust \
12 // RUN: --hipstdpar-prim-path=%S/Inputs/hipstdpar/rocprim \
13 // RUN: -nogpulib -nogpuinc --compile %s 2>&1 | \
14 // RUN: FileCheck --check-prefix=HIPSTDPAR-COMPILE %s
15 // RUN: touch %t.o
16 // RUN: %clang -### --hipstdpar %t.o 2>&1 | FileCheck --check-prefix=HIPSTDPAR-LINK %s
18 // HIPSTDPAR-MISSING-LIB: error: cannot find HIP Standard Parallelism Acceleration library; provide it via '--hipstdpar-path'
19 // HIPSTDPAR-COMPILE: "-x" "hip"
20 // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/thrust}}"
21 // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/rocprim}}"
22 // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/Inputs/hipstdpar}}"
23 // HIPSTDPAR-COMPILE: "-include" "hipstdpar_lib.hpp"
24 // HIPSTDPAR-LINK: "-rpath"
25 // HIPSTDPAR-LINK: "-l{{.*hip.*}}"