1 ; RUN: llc -filetype=obj <%s | llvm-objdump -d - | FileCheck %s
2 target datalayout = "e-m:e-i64:64-n32:64"
3 target triple = "powerpc64le-unknown-linux-gnu"
5 @ptr = common global ptr null, align 8
7 ; Verify there's no junk between these two instructions from misemitted
13 define void @h() nounwind {
14 %1 = load ptr, ptr @ptr, align 8
15 %2 = tail call ptr @llvm.frameaddress(i32 0)
16 store ptr %2, ptr %1, align 8
17 %3 = tail call ptr @llvm.stacksave()
18 %4 = getelementptr inbounds ptr, ptr %1, i64 2
19 store ptr %3, ptr %4, align 8
20 %5 = tail call i32 @llvm.eh.sjlj.setjmp(ptr %1)
21 %6 = icmp eq i32 %5, 0
22 br i1 %6, label %8, label %7
24 ; <label>:8: ; preds = %0
28 ; <label>:9: ; preds = %0
32 ; <label>:10: ; preds = %8, %7
36 ; Function Attrs: nounwind readnone
37 declare ptr @llvm.frameaddress(i32)
39 ; Function Attrs: nounwind
40 declare ptr @llvm.stacksave()
42 ; Function Attrs: nounwind
43 declare i32 @llvm.eh.sjlj.setjmp(ptr)