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 [
12 ; CHECK: adrp [[JTPAGE:x[0-9]+]], LJTI0_0@PAGE
13 ; CHECK: mov w[[INDEX:[0-9]+]], w0
14 ; CHECK: add x[[JT:[0-9]+]], [[JTPAGE]], LJTI0_0@PAGEOFF
15 ; CHECK: adr [[BASE_BLOCK:x[0-9]+]], LBB0_2
16 ; CHECK: ldrb w[[OFFSET:[0-9]+]], [x[[JT]], x[[INDEX]]]
17 ; CHECK: add [[DEST:x[0-9]+]], [[BASE_BLOCK]], x[[OFFSET]], lsl #2