1 ; RUN: llc -relocation-model=pic -mtriple=thumbv7-unknown-linux -o - %s | FileCheck %s
3 @x = external global i32
6 ; CHECK-NEXT: .p2align 2
12 ; CHECK-NEXT: .p2align 1
14 ret i32* zeroinitializer
17 @a = external global i32
18 @b = external global i32
19 @c = external global i32
20 @d = external global i32
22 ; Create a Thumb-2 jump table, which should force alignment to 4 bytes.
25 ; CHECK-NEXT: .p2align 2
28 %1 = load i32, i32* @c, align 4
29 switch i32 %1, label %7 [
37 %3 = load i32, i32* @a, align 4
38 %4 = tail call i32 bitcast (i32 (...)* @fn2 to i32 (i32 (...)*, i32, i32)*)(i32 (...)* bitcast (i32 ()* @baz to i32 (...)*), i32 0, i32 %3) #2
42 %6 = load i32, i32* @d, align 4
43 store i32 %6, i32* @b, align 4
50 %e.0 = phi i32 [ 1, %7 ], [ 1, %2 ], [ 0, %0 ], [ 0, %5 ]