1// REQUIRES: clang-driver,amdgpu-registered-target
2
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"
8
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"
14
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"
22