1// REQUIRES: clang-driver, amdgpu-registered-target 2// RUN: %clang -E -dM --offload-arch=gfx906 -mwavefrontsize64 \ 3// RUN: --cuda-device-only -nogpuinc -nogpulib \ 4// RUN: %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s 5// RUN: %clang -E -dM --offload-arch=gfx1010 -mwavefrontsize64 \ 6// RUN: --cuda-device-only -nogpuinc -nogpulib \ 7// RUN: %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s 8// RUN: %clang -E -dM --offload-arch=gfx906 -mwavefrontsize64 \ 9// RUN: --cuda-device-only -nogpuinc -nogpulib \ 10// RUN: -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s 11// RUN: %clang -E -dM --offload-arch=gfx1010 -mwavefrontsize64 \ 12// RUN: --cuda-device-only -nogpuinc -nogpulib \ 13// RUN: -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE32 %s 14// RUN: %clang -E -dM --offload-arch=gfx906 -mno-wavefrontsize64 \ 15// RUN: --cuda-device-only -nogpuinc -nogpulib \ 16// RUN: -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s 17// RUN: %clang -E -dM --offload-arch=gfx1010 -mno-wavefrontsize64 \ 18// RUN: --cuda-device-only -nogpuinc -nogpulib \ 19// RUN: -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefixes=WAVE64 %s 20// WAVE64-DAG: #define __AMDGCN_WAVEFRONT_SIZE 64 21// WAVE32-DAG: #define __AMDGCN_WAVEFRONT_SIZE 32 22