xref: /llvm-project/clang/test/CodeGenHipStdPar/unsupported-builtins.cpp (revision dd5d65adb6413122a5ba1ed04c5c2c0b4951b76c)
1 // RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu \
2 // RUN:   --hipstdpar -x hip -emit-llvm -fcuda-is-device -o - %s | FileCheck %s
3 
4 #define __global__ __attribute__((global))
5 
foo()6 __global__ void foo() { return __builtin_ia32_pause(); }
7 
8 // CHECK: declare void @__builtin_ia32_pause__hipstdpar_unsupported()
9