xref: /llvm-project/llvm/test/Transforms/HipStdPar/unsupported-asm.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 ASM block:
5; CHECK-NEXT: {{.*}}Invalid ASM block{{.*}}
6define amdgpu_kernel void @foo() {
7entry:
8  call void @__ASM__hipstdpar_unsupported([18 x i8] c"Invalid ASM block\00")
9  ret void
10}
11
12declare void @__ASM__hipstdpar_unsupported([18 x i8])