1 ; RUN: llc -mtriple=armv7-apple-ios8.0 -o - %s | FileCheck %s
5 define %BigInt @test_moved_jumptable(i1 %tst, i32 %sw, %BigInt %l) {
6 ; CHECK-LABEL: test_moved_jumptable:
8 ; CHECK: adr {{r[0-9]+}}, [[JUMP_TABLE:LJTI[0-9]+_[0-9]+]]
9 ; CHECK: b [[SKIP_TABLE:LBB[0-9]+_[0-9]+]]
11 ; CHECK: [[JUMP_TABLE]]:
12 ; CHECK: .data_region jt32
13 ; CHECK: .long LBB{{[0-9]+_[0-9]+}}-[[JUMP_TABLE]]
15 ; CHECK: [[SKIP_TABLE]]:
16 ; CHECK: add pc, {{r[0-9]+|lr}}, {{r[0-9]+|lr}}
17 br i1 %tst, label %simple, label %complex
23 switch i32 %sw, label %simple [ i32 0, label %other
36 %val = phi %BigInt [ %l, %complex ], [ -1, %simple ]