blob: 8715aa98ba5ec7fce45f0994fd3e7c679e9b69f7 [file] [log] [blame]
Rafael Espindola1edc08b2011-06-12 05:57:01 +00001; RUN: llc -mtriple=x86_64-apple-darwin10 -O0 < %s | FileCheck %s
2
3; test that we print a label that we use. We had a bug where
4; we would print the jump, but not the label because it was considered
5; a fall through.
6
7; CHECK: jmp LBB0_1
8; CHECK: LBB0_1:
9
10define void @foobar() {
11entry:
12 invoke void @_zed()
13 to label %invoke.cont unwind label %lpad
14
15invoke.cont: ; preds = %entry
16 ret void
17
18lpad: ; preds = %entry
Bill Wendling93590312011-08-31 21:39:05 +000019 %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
20 cleanup
Rafael Espindola1edc08b2011-06-12 05:57:01 +000021 unreachable
22}
23
24declare void @_zed() ssp align 2
Bill Wendling93590312011-08-31 21:39:05 +000025
26declare i32 @__gxx_personality_v0(...)