1 ; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64_32-apple-ios7.0 -aarch64-enable-atomic-cfg-tidy=0 | FileCheck %s
3 define i32 @test_jumptable(i32 %in) {
4 ; CHECK: test_jumptable
6 switch i32 %in, label %def [
13 ; CHECK: mov w[[INDEX:[0-9]+]], w0
14 ; CHECK: adrp [[JTPAGE:x[0-9]+]], LJTI0_0@PAGE
15 ; CHECK: add x[[JT:[0-9]+]], [[JTPAGE]], LJTI0_0@PAGEOFF
16 ; CHECK: adr [[BASE_BLOCK:x[0-9]+]], LBB0_2
17 ; CHECK: ldrb w[[OFFSET:[0-9]+]], [x[[JT]], x[[INDEX]]]
18 ; CHECK: add [[DEST:x[0-9]+]], [[BASE_BLOCK]], x[[OFFSET]], lsl #2