xref: /llvm-project/llvm/test/Transforms/HipStdPar/unsupported-builtins.ll (revision 0ce6255a50584863c2f462390cac6a63ccb5f136)
1; RUN: not opt -S -mtriple=amdgcn-amd-amdhsa -passes=hipstdpar-select-accelerator-code \
2; RUN: %s 2>&1 | FileCheck %s
3
4; CHECK: error: {{.*}} in function foo void (): Accelerator does not support the __builtin_ia32_pause function
5define amdgpu_kernel void @foo() {
6entry:
7  call void @__builtin_ia32_pause__hipstdpar_unsupported()
8  ret void
9}
10
11declare void @__builtin_ia32_pause__hipstdpar_unsupported()