1 ; RUN: llc -march=xcore < %s | FileCheck %s 2 3 define i32 @switch(i32 %i) { 4 entry: 5 switch i32 %i, label %default [ 6 i32 0, label %bb0 7 i32 1, label %bb1 8 i32 2, label %bb2 9 i32 3, label %bb3 10 ] 11 ; CHECK-NOT: shl 12 ; CHECK: bru 13 ; CHECK: .jmptable 14 bb0: 15 ret i32 0 16 bb1: 17 ret i32 1 18 bb2: 19 ret i32 2 20 bb3: 21 ret i32 3 22 default: 23 ret i32 4 24 } 25