[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / hip-wavefront-size.hip
blob2d64ca15b7446c0899e28424469f0e76017e479c
1 // RUN: %clang -### --target=x86_64-linux-gnu \
2 // RUN:   --cuda-gpu-arch=gfx900 \
3 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
4 // RUN:   2>&1 | FileCheck %s --check-prefixes=WAVE64
5 // WAVE64: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_on.bc"{{.*}} "-target-cpu" "gfx900"
7 // RUN: %clang -### --target=x86_64-linux-gnu \
8 // RUN:   --cuda-gpu-arch=gfx1010 \
9 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
10 // RUN:   2>&1 | FileCheck %s --check-prefixes=WAVE32
11 // WAVE32: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_off.bc"{{.*}} "-target-cpu" "gfx1010"
13 // RUN: %clang -### --target=x86_64-linux-gnu \
14 // RUN:   --cuda-gpu-arch=gfx1010 \
15 // RUN:   --cuda-gpu-arch=gfx900 \
16 // RUN:   --rocm-path=%S/Inputs/rocm --cuda-device-only %s \
17 // RUN:   2>&1 | FileCheck %s --check-prefixes=BOTH
18 // BOTH-DAG: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_on.bc"{{.*}} "-target-cpu" "gfx900"
19 // BOTH-DAG: "-mlink-builtin-bitcode" "{{.*}}oclc_wavefrontsize64_off.bc"{{.*}} "-target-cpu" "gfx1010"