John McCall | 5f8fd54 | 2011-05-29 19:50:32 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=arm | FileCheck %s |
| 2 | target triple = "armv6-apple-macosx10.6" |
| 3 | |
| 4 | declare void @func() |
| 5 | |
John McCall | 5f8fd54 | 2011-05-29 19:50:32 +0000 | [diff] [blame] | 6 | declare i32 @__gxx_personality_sj0(...) |
| 7 | |
| 8 | define void @test0() { |
| 9 | entry: |
| 10 | invoke void @func() |
| 11 | to label %cont unwind label %lpad |
| 12 | |
| 13 | cont: |
| 14 | ret void |
| 15 | |
| 16 | lpad: |
Bill Wendling | 30ceba3 | 2011-11-08 00:09:27 +0000 | [diff] [blame^] | 17 | %exn = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) |
| 18 | cleanup |
| 19 | resume { i8*, i32 } %exn |
John McCall | 5f8fd54 | 2011-05-29 19:50:32 +0000 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | ; CHECK: __Unwind_SjLj_Resume |