annotate test/CodeGen/Thumb/litpoolremat.ll @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 declare void @consume_value(i32) #1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 declare i32 @get_value(...) #1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 declare void @consume_three_values(i32, i32, i32) #1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; Function Attrs: nounwind uwtable
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 define void @should_not_spill() #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 tail call void @consume_value(i32 1764) #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 %1 = tail call i32 (...) @get_value() #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 %2 = tail call i32 (...) @get_value() #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 %3 = tail call i32 (...) @get_value() #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 tail call void @consume_value(i32 %1) #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 tail call void @consume_value(i32 %2) #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 tail call void @consume_value(i32 %3) #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 tail call void @consume_value(i32 1764) #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 tail call void @consume_three_values(i32 %1, i32 %2, i32 %3) #2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 ; CHECK: ldr r0, LCPI0_0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 ; CHECK-NOT: str r0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 ; CHECK: bl
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 ; CHECK: ldr r0, LCPI0_0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 ; CHECK-LABEL: LCPI0_0:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 ; CHECK-NEXT: .long 1764