1 ; RUN: llc < %s -mtriple=armv7-apple-ios | FileCheck %s
2 ; This testcase makes sure we can handle invoke @llvm.donothing without
4 ; <rdar://problem/13228754> & <rdar://problem/13316637>
7 define void @foo() personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) {
10 to label %invoke.cont25 unwind label %lpad2
12 invoke void @llvm.donothing()
13 to label %invoke.cont27 unwind label %lpad15
17 to label %invoke.cont75 unwind label %lpad15
23 %0 = landingpad { i8*, i32 }
28 %1 = landingpad { i8*, i32 }
33 resume { i8*, i32 } zeroinitializer
37 define linkonce_odr void @bar(i32* %a) personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) {
39 invoke void @llvm.donothing()
40 to label %call.i.i.i.noexc unwind label %eh.resume
43 br i1 false, label %cleanup, label %new.notnull.i.i
49 %0 = load i32, i32* %a, align 4
50 %inc294 = add nsw i32 %0, 4
51 store i32 %inc294, i32* %a, align 4
52 br i1 false, label %_ZN3lol5ArrayIivvvvvvvED1Ev.exit, label %delete.notnull.i.i.i1409
54 delete.notnull.i.i.i1409:
55 br label %_ZN3lol5ArrayIivvvvvvvED1Ev.exit
57 _ZN3lol5ArrayIivvvvvvvED1Ev.exit:
61 %1 = landingpad { i8*, i32 }
63 %2 = extractvalue { i8*, i32 } %1, 0
64 %3 = extractvalue { i8*, i32 } %1, 1
65 %lpad.val = insertvalue { i8*, i32 } undef, i8* %2, 0
66 %lpad.val395 = insertvalue { i8*, i32 } %lpad.val, i32 %3, 1
67 resume { i8*, i32 } %lpad.val395
72 declare void @llvm.donothing() nounwind readnone
73 declare i32 @__gxx_personality_sj0(...)