1 ; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s
3 declare void @consume_value(i32) #1
5 declare i32 @get_value(...) #1
7 declare void @consume_three_values(i32, i32, i32) #1
9 ; Function Attrs: nounwind uwtable
10 define void @should_not_spill() #0 {
11 tail call void @consume_value(i32 1764) #2
12 %1 = tail call i32 (...) @get_value() #2
13 %2 = tail call i32 (...) @get_value() #2
14 %3 = tail call i32 (...) @get_value() #2
15 tail call void @consume_value(i32 %1) #2
16 tail call void @consume_value(i32 %2) #2
17 tail call void @consume_value(i32 %3) #2
18 tail call void @consume_value(i32 1764) #2
19 tail call void @consume_three_values(i32 %1, i32 %2, i32 %3) #2
23 ; CHECK: ldr r0, LCPI0_0
26 ; CHECK: ldr r0, LCPI0_0
27 ; CHECK-LABEL: LCPI0_0:
28 ; CHECK-NEXT: .long 1764