aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/hip-host-cpu-macros.cu
blob: 7c255103db02e06bfd5a47fd840567a9bb228491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target

#ifdef __HIP_DEVICE_COMPILE__
DEVICE __SSE3__
#else
HOST __SSE3__
#endif

// RUN: %clang -x hip -E -target x86_64-linux-gnu -msse3 --cuda-gpu-arch=gfx803 -nogpulib -nogpuinc -nobuiltininc -o - %s 2>&1 | FileCheck %s

// CHECK-NOT: SSE3