1 ; RUN: llc -mtriple=xtensa -verify-machineinstrs < %s \
4 define void @switch_4_xtensa(i32 %in, ptr %out) nounwind {
5 ; CHECK: .literal_position
6 ; CHECK-NEXT: .LCPI0_0, .LJTI0_0
7 ; CHECK-LABEL: switch_4_xtensa:
9 ; CHECK-NEXT: addi a9, a2, -1
10 ; CHECK-NEXT: movi a8, 3
11 ; CHECK-NEXT: bltu a8, a9, .LBB0_6
12 ; CHECK-NEXT: # %bb.1:
13 ; CHECK-NEXT: l32r a10, .LCPI0_0
14 ; CHECK-NEXT: addx4 a9, a9, a10
15 ; CHECK-NEXT: l32i a9, a9, 0
20 switch i32 %in, label %exit [