1 // REQUIRES: x86-registered-target
2 // REQUIRES: amdgpu-registered-target
4 // RUN: %clang -### -c --target=x86_64-linux-gnu -march=znver2 --cuda-gpu-arch=gfx803 -nogpulib %s 2>&1 | FileCheck %s -check-prefix=HOSTCPU
5 // RUN: %clang -### -c --target=x86_64-linux-gnu -msse3 --cuda-gpu-arch=gfx803 -nogpulib %s 2>&1 | FileCheck %s -check-prefix=HOSTSSE3
6 // RUN: %clang -### -c --target=x86_64-linux-gnu --gpu-use-aux-triple-only -march=znver2 --cuda-gpu-arch=gfx803 -nogpulib %s 2>&1 | FileCheck %s -check-prefix=NOHOSTCPU
8 // HOSTCPU: "-cc1" "-triple" "amdgcn-amd-amdhsa"
9 // HOSTCPU-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
10 // HOSTCPU-SAME: "-aux-target-cpu" "znver2"
12 // HOSTSSE3: "-cc1" "-triple" "amdgcn-amd-amdhsa"
13 // HOSTSSE3-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
14 // HOSTSSE3-SAME: "-aux-target-feature" "+sse3"
16 // NOHOSTCPU: "-cc1" "-triple" "amdgcn-amd-amdhsa"
17 // NOHOSTCPU-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
18 // NOHOSTCPU-NOT: "-aux-target-cpu" "znver2"