1 ; RUN: llc -mtriple=x86_64-apple-darwin10 -O0 < %s | FileCheck %s
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
8 ; CHECK: LBB0_9: ## %cleanup
10 ; RUN: llc -filetype=obj -mtriple=x86_64 -O0 -save-temp-labels < %s | llvm-objdump -d - | FileCheck %s --check-prefix=SAVETEMP
12 ; SAVETEMP: jne {{.*}} <.LBB0_1>
13 ; SAVETEMP-LABEL: <.LBB0_1>:
17 br i1 undef, label %land.lhs.true, label %if.end11
19 land.lhs.true: ; preds = %entry
20 br i1 undef, label %if.then, label %if.end11
22 if.then: ; preds = %land.lhs.true
23 br i1 undef, label %if.then9, label %if.end
25 if.then9: ; preds = %if.then
28 if.end: ; preds = %if.then
31 cleanup: ; preds = %if.end, %if.then9
32 switch i32 undef, label %default [
33 i32 0, label %cleanup.cont
34 i32 1, label %if.end11
37 cleanup.cont: ; preds = %cleanup
40 if.end11: ; preds = %cleanup.cont, %cleanup, %land.lhs.true, %entry
43 default: ; preds = %cleanup