1 ; RUN: llc -mtriple=arm64-apple-ios < %s | FileCheck %s
2 ; RUN: llc -mtriple=arm64-linux-gnu < %s | FileCheck %s --check-prefix=CHECK-LINUX
5 define void @sum(i32 %a, i32* %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 ], [ 3, %bb3 ], [ %a, %entry ]
22 store i32 %.sink, i32* %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