1 ; RUN: llc -mtriple=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC16
3 @s = global i8 115, align 1
4 @c = common global i8 0, align 1
5 @.str = private unnamed_addr constant [5 x i8] c"%c \0A\00", align 1
7 define void @test(i32 %i) nounwind {
9 %i.addr = alloca i32, align 4
10 store i32 %i, ptr %i.addr, align 4
11 %0 = load i32, ptr %i.addr, align 4
12 switch i32 %0, label %sw.epilog [
14 i32 105, label %sw.bb1
15 i32 100, label %sw.bb2
16 i32 108, label %sw.bb3
23 sw.bb: ; preds = %entry
24 store i8 115, ptr @c, align 1
27 sw.bb1: ; preds = %entry
28 store i8 105, ptr @c, align 1
31 sw.bb2: ; preds = %entry
32 store i8 100, ptr @c, align 1
35 sw.bb3: ; preds = %entry
36 store i8 108, ptr @c, align 1
39 sw.bb4: ; preds = %entry
40 store i8 99, ptr @c, align 1
43 sw.bb5: ; preds = %entry
44 store i8 68, ptr @c, align 1
47 sw.bb6: ; preds = %entry
48 store i8 81, ptr @c, align 1
51 sw.bb7: ; preds = %entry
52 store i8 76, ptr @c, align 1
55 sw.epilog: ; preds = %entry, %sw.bb7, %sw.bb6, %sw.bb5, %sw.bb4, %sw.bb3, %sw.bb2, %sw.bb1, %sw.bb
59 ; CHECK-STATIC16: li ${{[0-9]+}}, %hi($JTI{{[0-9]+}}_{{[0-9]+}})
60 ; CHECK-STATIC16: lw ${{[0-9]+}}, %lo($JTI{{[0-9]+}}_{{[0-9]+}})(${{[0-9]+}})
61 ; CHECK-STATIC16: $JTI{{[0-9]+}}_{{[0-9]+}}:
62 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
63 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
64 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
65 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
66 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
67 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
68 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
69 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
70 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})
71 ; CHECK-STATIC16: .4byte ($BB0_{{[0-9]+}})