xref: /llvm-project/llvm/test/CodeGen/PowerPC/aix-trampoline.ll (revision 427fb35192f1f7bb694a5910b05abc5925a798b2)
1; RUN: not --crash llc -mtriple powerpc-ibm-aix-xcoff < %s 2>&1 | FileCheck %s
2; RUN: not --crash llc -mtriple powerpc64-ibm-aix-xcoff < %s 2>&1 | FileCheck %s
3
4; CHECK: LLVM ERROR: INIT_TRAMPOLINE operation is not supported on AIX.
5
6define void @create_trampoline(ptr %buffer, ptr %nval) nounwind {
7entry:
8  call void @llvm.init.trampoline(ptr %buffer, ptr @nested , ptr %nval)
9  ret void
10}
11
12declare i32 @nested(i32);
13
14declare void @llvm.init.trampoline(ptr, ptr, ptr) nounwind
15