1 ; Ensure that jump tables can be handled by the mblaze backend. The
2 ; jump table should be lowered to a "br" instruction using one of the
5 ; RUN: llc < %s -march=mblaze | FileCheck %s
7 define i32 @jmptable(i32 %arg)
10 switch i32 %arg, label %DEFAULT [ i32 0, label %L0
21 ; CHECK: lw [[REG:r[0-9]*]]
24 %var0 = add i32 %arg, 0
28 %var1 = add i32 %arg, 1
32 %var2 = add i32 %arg, 2
36 %var3 = add i32 %arg, 3
40 %var4 = add i32 %arg, 4
44 %var5 = add i32 %arg, 5
48 %var6 = add i32 %arg, 6
52 %var7 = add i32 %arg, 7
56 %var8 = add i32 %arg, 8
60 %var9 = add i32 %arg, 9
67 %rval = phi i32 [ %var0, %L0 ],