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