va_caller.ll
1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
; RUN: llc < %s -mtriple=ve-unknown-unknown | FileCheck %s
declare i32 @func(i32, ...)
define i32 @caller() {
; CHECK-LABEL: caller:
; CHECK: .LBB{{[0-9]+}}_2:
; CHECK-NEXT: st %s18, 48(, %s9) # 8-byte Folded Spill
; CHECK-NEXT: or %s18, 0, (0)1
; CHECK-NEXT: st %s18, 264(, %s11)
; CHECK-NEXT: or %s0, 10, (0)1
; CHECK-NEXT: st %s0, 256(, %s11)
; CHECK-NEXT: lea.sl %s0, 1075970048
; CHECK-NEXT: st %s0, 248(, %s11)
; CHECK-NEXT: or %s0, 8, (0)1
; CHECK-NEXT: st %s0, 240(, %s11)
; CHECK-NEXT: st %s18, 232(, %s11)
; CHECK-NEXT: or %s5, 5, (0)1
; CHECK-NEXT: st %s5, 216(, %s11)
; CHECK-NEXT: or %s4, 4, (0)1
; CHECK-NEXT: st %s4, 208(, %s11)
; CHECK-NEXT: or %s3, 3, (0)1
; CHECK-NEXT: st %s3, 200(, %s11)
; CHECK-NEXT: or %s2, 2, (0)1
; CHECK-NEXT: st %s2, 192(, %s11)
; CHECK-NEXT: or %s1, 1, (0)1
; CHECK-NEXT: st %s1, 184(, %s11)
; CHECK-NEXT: lea %s0, .LCPI{{[0-9]+}}_0@lo
; CHECK-NEXT: and %s0, %s0, (32)0
; CHECK-NEXT: lea.sl %s0, .LCPI{{[0-9]+}}_0@hi(, %s0)
; CHECK-NEXT: ld %s34, 8(, %s0)
; CHECK-NEXT: ld %s35, (, %s0)
; CHECK-NEXT: st %s18, 176(, %s11)
; CHECK-NEXT: lea.sl %s6, 1086324736
; CHECK-NEXT: st %s6, 224(, %s11)
; CHECK-NEXT: st %s34, 280(, %s11)
; CHECK-NEXT: lea %s0, func@lo
; CHECK-NEXT: and %s0, %s0, (32)0
; CHECK-NEXT: lea.sl %s12, func@hi(, %s0)
; CHECK-NEXT: st %s35, 272(, %s11)
; CHECK-NEXT: or %s0, 0, %s18
; CHECK-NEXT: or %s7, 0, %s18
; CHECK-NEXT: bsic %s10, (, %s12)
; CHECK-NEXT: or %s0, 0, %s18
; CHECK-NEXT: ld %s18, 48(, %s9) # 8-byte Folded Reload
; CHECK-NEXT: or %s11, 0, %s9
call i32 (i32, ...) @func(i32 0, i16 1, i8 2, i32 3, i16 4, i8 5, float 6.0, i8* null, i64 8, double 9.0, i128 10, fp128 0xLA000000000000000)
ret i32 0
}