1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+altivec \
3 ; RUN: -vec-extabi -mtriple powerpc-ibm-aix-xcoff < %s | \
4 ; RUN: FileCheck %s --check-prefix=32BIT
6 ; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+altivec \
7 ; RUN: -vec-extabi -mtriple powerpc64-ibm-aix-xcoff < %s | \
8 ; RUN: FileCheck %s --check-prefix=64BIT
9 %struct.Test = type { double, double, double, double }
11 @__const.caller.t = private unnamed_addr constant %struct.Test { double 0.000000e+00, double 1.000000e+00, double 2.000000e+00, double 3.000000e+00 }, align 8
13 define double @caller() {
14 ; 32BIT-LABEL: caller:
15 ; 32BIT: # %bb.0: # %entry
17 ; 32BIT-NEXT: stwu 1, -192(1)
18 ; 32BIT-NEXT: lis 3, 16392
19 ; 32BIT-NEXT: stw 0, 200(1)
20 ; 32BIT-NEXT: lis 4, 16384
21 ; 32BIT-NEXT: xxlxor 0, 0, 0
22 ; 32BIT-NEXT: lwz 5, L..C0(2) # %const.0
23 ; 32BIT-NEXT: stw 3, 180(1)
25 ; 32BIT-NEXT: xxlxor 1, 1, 1
26 ; 32BIT-NEXT: li 6, 512
27 ; 32BIT-NEXT: stw 4, 172(1)
28 ; 32BIT-NEXT: lis 4, 16368
29 ; 32BIT-NEXT: xxlxor 2, 2, 2
30 ; 32BIT-NEXT: stw 3, 184(1)
31 ; 32BIT-NEXT: stw 3, 176(1)
32 ; 32BIT-NEXT: xxlxor 34, 34, 34
33 ; 32BIT-NEXT: stw 3, 168(1)
34 ; 32BIT-NEXT: stw 3, 160(1)
35 ; 32BIT-NEXT: xxlxor 35, 35, 35
36 ; 32BIT-NEXT: stw 3, 156(1)
37 ; 32BIT-NEXT: li 3, 136
38 ; 32BIT-NEXT: lxvd2x 32, 0, 5
39 ; 32BIT-NEXT: xxlxor 36, 36, 36
40 ; 32BIT-NEXT: stw 4, 164(1)
41 ; 32BIT-NEXT: li 4, 120
42 ; 32BIT-NEXT: stxvw4x 0, 1, 3
43 ; 32BIT-NEXT: xxlxor 37, 37, 37
44 ; 32BIT-NEXT: li 3, 104
45 ; 32BIT-NEXT: stxvw4x 0, 1, 4
46 ; 32BIT-NEXT: xxlxor 38, 38, 38
47 ; 32BIT-NEXT: li 5, 48
48 ; 32BIT-NEXT: stxvw4x 0, 1, 3
49 ; 32BIT-NEXT: li 3, 88
50 ; 32BIT-NEXT: xxlxor 39, 39, 39
51 ; 32BIT-NEXT: li 4, 256
52 ; 32BIT-NEXT: xxlxor 40, 40, 40
53 ; 32BIT-NEXT: stxvw4x 0, 1, 3
54 ; 32BIT-NEXT: li 3, 72
55 ; 32BIT-NEXT: xxlxor 41, 41, 41
56 ; 32BIT-NEXT: stxvw4x 0, 1, 3
57 ; 32BIT-NEXT: li 3, 128
58 ; 32BIT-NEXT: xxlxor 42, 42, 42
59 ; 32BIT-NEXT: stxvd2x 32, 1, 5
60 ; 32BIT-NEXT: stw 6, 152(1)
61 ; 32BIT-NEXT: xxlxor 43, 43, 43
62 ; 32BIT-NEXT: xxlxor 44, 44, 44
63 ; 32BIT-NEXT: xxlxor 45, 45, 45
64 ; 32BIT-NEXT: xxlxor 3, 3, 3
65 ; 32BIT-NEXT: xxlxor 4, 4, 4
66 ; 32BIT-NEXT: xxlxor 5, 5, 5
67 ; 32BIT-NEXT: xxlxor 6, 6, 6
68 ; 32BIT-NEXT: xxlxor 7, 7, 7
69 ; 32BIT-NEXT: xxlxor 8, 8, 8
70 ; 32BIT-NEXT: xxlxor 9, 9, 9
71 ; 32BIT-NEXT: xxlxor 10, 10, 10
72 ; 32BIT-NEXT: xxlxor 11, 11, 11
73 ; 32BIT-NEXT: xxlxor 12, 12, 12
74 ; 32BIT-NEXT: xxlxor 13, 13, 13
75 ; 32BIT-NEXT: bl .callee[PR]
77 ; 32BIT-NEXT: addi 1, 1, 192
78 ; 32BIT-NEXT: lwz 0, 8(1)
82 ; 64BIT-LABEL: caller:
83 ; 64BIT: # %bb.0: # %entry
85 ; 64BIT-NEXT: stdu 1, -224(1)
86 ; 64BIT-NEXT: li 3, 2049
87 ; 64BIT-NEXT: std 0, 240(1)
89 ; 64BIT-NEXT: xxlxor 0, 0, 0
90 ; 64BIT-NEXT: rldic 3, 3, 51, 1
91 ; 64BIT-NEXT: rldic 4, 4, 62, 1
93 ; 64BIT-NEXT: xxlxor 1, 1, 1
94 ; 64BIT-NEXT: std 3, 216(1)
95 ; 64BIT-NEXT: li 3, 1023
96 ; 64BIT-NEXT: xxlxor 2, 2, 2
97 ; 64BIT-NEXT: li 6, 144
98 ; 64BIT-NEXT: rldic 3, 3, 52, 2
99 ; 64BIT-NEXT: std 4, 208(1)
100 ; 64BIT-NEXT: li 4, 160
101 ; 64BIT-NEXT: xxlxor 34, 34, 34
102 ; 64BIT-NEXT: std 3, 200(1)
103 ; 64BIT-NEXT: ld 3, L..C0(2) # %const.0
104 ; 64BIT-NEXT: std 5, 192(1)
105 ; 64BIT-NEXT: xxlxor 35, 35, 35
106 ; 64BIT-NEXT: xxlxor 36, 36, 36
107 ; 64BIT-NEXT: stxvw4x 0, 1, 4
108 ; 64BIT-NEXT: li 4, 80
109 ; 64BIT-NEXT: xxlxor 37, 37, 37
110 ; 64BIT-NEXT: stxvw4x 0, 1, 6
111 ; 64BIT-NEXT: li 6, 512
112 ; 64BIT-NEXT: lxvd2x 32, 0, 3
113 ; 64BIT-NEXT: xxlxor 38, 38, 38
114 ; 64BIT-NEXT: li 3, 128
115 ; 64BIT-NEXT: xxlxor 39, 39, 39
116 ; 64BIT-NEXT: stxvw4x 0, 1, 3
117 ; 64BIT-NEXT: xxlxor 40, 40, 40
118 ; 64BIT-NEXT: xxlxor 41, 41, 41
119 ; 64BIT-NEXT: stxvd2x 32, 1, 4
120 ; 64BIT-NEXT: li 4, 256
121 ; 64BIT-NEXT: std 6, 184(1)
122 ; 64BIT-NEXT: xxlxor 42, 42, 42
123 ; 64BIT-NEXT: std 5, 176(1)
124 ; 64BIT-NEXT: xxlxor 43, 43, 43
125 ; 64BIT-NEXT: xxlxor 44, 44, 44
126 ; 64BIT-NEXT: xxlxor 45, 45, 45
127 ; 64BIT-NEXT: xxlxor 3, 3, 3
128 ; 64BIT-NEXT: xxlxor 4, 4, 4
129 ; 64BIT-NEXT: xxlxor 5, 5, 5
130 ; 64BIT-NEXT: xxlxor 6, 6, 6
131 ; 64BIT-NEXT: xxlxor 7, 7, 7
132 ; 64BIT-NEXT: xxlxor 8, 8, 8
133 ; 64BIT-NEXT: xxlxor 9, 9, 9
134 ; 64BIT-NEXT: xxlxor 10, 10, 10
135 ; 64BIT-NEXT: xxlxor 11, 11, 11
136 ; 64BIT-NEXT: xxlxor 12, 12, 12
137 ; 64BIT-NEXT: xxlxor 13, 13, 13
138 ; 64BIT-NEXT: bl .callee[PR]
140 ; 64BIT-NEXT: addi 1, 1, 224
141 ; 64BIT-NEXT: ld 0, 16(1)
146 %call = tail call double @callee(i32 signext 128, i32 signext 256, double 0.000000e+00, double 0.000000e+00, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 0.000000e+00, double 0.000000e+00>, <2 x double> <double 2.400000e+01, double 2.500000e+01>, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, i32 signext 512, ptr nonnull byval(%struct.Test) align 4 @__const.caller.t)
150 declare double @callee(i32 signext, i32 signext, double, double, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, <2 x double>, double, double, double, double, double, double, double, double, double, double, double, i32 signext, ptr byval(%struct.Test) align 8)