Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / hip-wavefront-size.hip
blob500a8af78c184081dea2304bf56e9957b508333b
1 // REQUIRES: amdgpu-registered-target
3 // RUN: %clang -### --target=x86_64-linux-gnu \
4 // RUN:   --cuda-gpu-arch=gfx900 \
5 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
6 // RUN:   2>&1 | FileCheck %s --check-prefixes=WAVE64
7 // WAVE64: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_on.bc"{{.*}} "-target-cpu" "gfx900"
9 // RUN: %clang -### --target=x86_64-linux-gnu \
10 // RUN:   --cuda-gpu-arch=gfx1010 \
11 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
12 // RUN:   2>&1 | FileCheck %s --check-prefixes=WAVE32
13 // WAVE32: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_off.bc"{{.*}} "-target-cpu" "gfx1010"
15 // RUN: %clang -### --target=x86_64-linux-gnu \
16 // RUN:   --cuda-gpu-arch=gfx1010 \
17 // RUN:   --cuda-gpu-arch=gfx900 \
18 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
19 // RUN:   2>&1 | FileCheck %s --check-prefixes=BOTH
20 // BOTH-DAG: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_on.bc"{{.*}} "-target-cpu" "gfx900"
21 // BOTH-DAG: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_off.bc"{{.*}} "-target-cpu" "gfx1010"