blob: 605fe4627c99728140503027a4d481e92b734e12 [file] [log] [blame]
Duncan P. N. Exon Smith50ed9af2014-01-21 22:46:46 +00001; RUN: llc -mtriple=thumbv7-apple-ios < %s
2; SjLjEHPrepare shouldn't crash when lowering vectors.
3
4target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"
5target triple = "thumbv7-apple-ios"
6
David Majnemer7fddecc2015-06-17 20:52:32 +00007define i8* @foo(<4 x i32> %c) personality i8* bitcast (i32 (...)* @baz to i8*) {
Duncan P. N. Exon Smith50ed9af2014-01-21 22:46:46 +00008entry:
9 invoke void @bar ()
10 to label %unreachable unwind label %handler
11
12unreachable:
13 unreachable
14
15handler:
David Majnemer7fddecc2015-06-17 20:52:32 +000016 %tmp = landingpad { i8*, i32 }
Duncan P. N. Exon Smith50ed9af2014-01-21 22:46:46 +000017 cleanup
18 resume { i8*, i32 } undef
19}
20
21declare void @bar()
22declare i32 @baz(...)
23