1 ; RUN: llc -mtriple=arm64-apple-ios < %s | FileCheck %s 2 ; RUN: llc -mtriple=arm64-linux-gnu < %s | FileCheck %s --check-prefix=CHECK-LINUX 3 ; <rdar://11417675> 4 5 define void @sum(i32* %to) { 6 entry: 7 switch i32 undef, label %exit [ 8 i32 1, label %bb1 9 i32 2, label %bb2 10 i32 3, label %bb3 11 i32 4, label %bb4 12 ] 13 bb1: 14 store i32 undef, i32* %to 15 br label %exit 16 bb2: 17 store i32 undef, i32* %to 18 br label %exit 19 bb3: 20 store i32 undef, i32* %to 21 br label %exit 22 bb4: 23 store i32 undef, i32* %to 24 br label %exit 25 exit: 26 ret void 27 } 28 29 ; CHECK-LABEL: sum: 30 ; CHECK: adrp {{x[0-9]+}}, LJTI0_0@PAGE 31 ; CHECK: add {{x[0-9]+}}, {{x[0-9]+}}, LJTI0_0@PAGEOFF 32 33 ; CHECK-LINUX-LABEL: sum: 34 ; CHECK-LINUX: adrp {{x[0-9]+}}, .LJTI0_0 35 ; CHECK-LINUX: add {{x[0-9]+}}, {{x[0-9]+}}, :lo12:.LJTI0_0 36