source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AArch64/arm64-jumptable.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 800 bytes
Line 
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
5define void @sum(i32* %to) {
6entry:
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  ]
13bb1:
14  store i32 undef, i32* %to
15  br label %exit
16bb2:
17  store i32 undef, i32* %to
18  br label %exit
19bb3:
20  store i32 undef, i32* %to
21  br label %exit
22bb4:
23  store i32 undef, i32* %to
24  br label %exit
25exit:
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
Note: See TracBrowser for help on using the repository browser.