[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / hip-host-cpu-features.hip
blob165b2f2d54f8ef50e43488fff051fa7fef1d630d
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"