1 ; RUN: not opt -S -mtriple=amdgcn-amd-amdhsa -passes=hipstdpar-select-accelerator-code \
2 ; RUN: %s 2>&1 | FileCheck %s
4 ; CHECK: error: {{.*}} in function foo void (): Accelerator does not support the __builtin_ia32_pause function
5 define amdgpu_kernel void @foo() {
7 call void @__builtin_ia32_pause__hipstdpar_unsupported()
11 declare void @__builtin_ia32_pause__hipstdpar_unsupported()