llvm-project/clang/test/Preprocessor/hip-host-cpu-macros.cu
Yaxun (Sam) Liu 8422bc9efc recommit "[HIP] Add default header and include path"
recommit 11d06b9511bd25aabbfad10dff548b0ce29135a5 with
fix for lit tests.
2020-06-06 14:21:22 -04:00

14 lines
336 B
Plaintext

// REQUIRES: clang-driver
// 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