1 ; RUN: llc -mtriple=arm64-apple-ios -aarch64-min-jump-table-entries=4 < %s | FileCheck %s
2 ; RUN: llc -mtriple=arm64-linux-gnu -aarch64-min-jump-table-entries=4 < %s | FileCheck %s --check-prefix=CHECK-LINUX
5 define void @sum(i32 %a, ptr %to, i32 %c) {
7 switch i32 %a, label %exit [
9 i32 2, label %exit.sink.split
15 br label %exit.sink.split
17 br label %exit.sink.split
19 br label %exit.sink.split
21 %.sink = phi i32 [ 5, %bb4 ], [ %b, %bb1 ], [ 7, %bb3 ], [ %a, %entry ]
22 store i32 %.sink, ptr %to
29 ; CHECK: adrp {{x[0-9]+}}, LJTI0_0@PAGE
30 ; CHECK: add {{x[0-9]+}}, {{x[0-9]+}}, LJTI0_0@PAGEOFF
32 ; CHECK-LINUX-LABEL: sum:
33 ; CHECK-LINUX: adrp {{x[0-9]+}}, .LJTI0_0
34 ; CHECK-LINUX: add {{x[0-9]+}}, {{x[0-9]+}}, :lo12:.LJTI0_0