1 ; RUN: llc < %s -mtriple thumbv6-apple-macosx10.6.0 | FileCheck %s
3 ; test that we print the label of a bb that is only used in a jump table.
5 ; CHECK: .long [[JUMPTABLE_DEST:LBB[0-9]+_[0-9]+]]
6 ; CHECK: [[JUMPTABLE_DEST]]:
8 define i32 @calculate() {
10 switch i32 undef, label %return [
17 sw.bb: ; preds = %entry
20 sw.bb6: ; preds = %entry
23 sw.bb13: ; preds = %entry
26 sw.bb20: ; preds = %entry
27 %div = sdiv i32 undef, undef
30 return: ; preds = %sw.bb20, %sw.bb13, %sw.bb6, %sw.bb, %entry
31 %retval.0 = phi i32 [ %div, %sw.bb20 ], [ undef, %sw.bb13 ], [ undef, %sw.bb6 ], [ undef, %sw.bb ], [ 0, %entry ]