OLD | NEW |
---|---|
1 ; This file checks that Subzero generates code in accordance with the | 1 ; This file checks that Subzero generates code in accordance with the |
2 ; calling convention for vectors. | 2 ; calling convention for vectors. |
3 | 3 |
4 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 4 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
7 ; RUN: %p2i -i %s --args -Om1 --verbose none \ | 7 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ | 9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ |
10 ; RUN: | FileCheck --check-prefix=OPTM1 %s | 10 ; RUN: | FileCheck --check-prefix=OPTM1 %s |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
164 ; CHECK: movups [[ARG5:.*]], xmmword ptr [esp + 64] | 164 ; CHECK: movups [[ARG5:.*]], xmmword ptr [esp + 64] |
165 ; CHECK: movups xmmword ptr [esp], [[ARG5]] | 165 ; CHECK: movups xmmword ptr [esp], [[ARG5]] |
166 ; CHECK: movups [[ARG6:.*]], xmmword ptr [esp + 48] | 166 ; CHECK: movups [[ARG6:.*]], xmmword ptr [esp + 48] |
167 ; CHECK: movups xmmword ptr [esp + 16], [[ARG6]] | 167 ; CHECK: movups xmmword ptr [esp + 16], [[ARG6]] |
168 ; CHECK: movups xmm0, xmmword ptr [esp + 128] | 168 ; CHECK: movups xmm0, xmmword ptr [esp + 128] |
169 ; CHECK: movups xmm1, xmmword ptr [esp + 112] | 169 ; CHECK: movups xmm1, xmmword ptr [esp + 112] |
170 ; CHECK: movups xmm2, xmmword ptr [esp + 96] | 170 ; CHECK: movups xmm2, xmmword ptr [esp + 96] |
171 ; CHECK: movups xmm3, xmmword ptr [esp + 80] | 171 ; CHECK: movups xmm3, xmmword ptr [esp + 80] |
172 ; CHECK: call -4 | 172 ; CHECK: call -4 |
173 ; CHECK-NEXT: add esp, 32 | 173 ; CHECK-NEXT: add esp, 32 |
174 ; CHECK: ret | |
jvoung (off chromium)
2014/10/05 21:17:26
Since the .byte breaks llvm-mc NaCl bundle padding
| |
175 | 174 |
176 ; OPTM1-LABEL: test_passing_vectors: | 175 ; OPTM1-LABEL: test_passing_vectors: |
177 ; OPTM1: sub esp, 32 | 176 ; OPTM1: sub esp, 32 |
178 ; OPTM1: movups [[ARG5:.*]], xmmword ptr {{.*}} | 177 ; OPTM1: movups [[ARG5:.*]], xmmword ptr {{.*}} |
179 ; OPTM1: movups xmmword ptr [esp], [[ARG5]] | 178 ; OPTM1: movups xmmword ptr [esp], [[ARG5]] |
180 ; OPTM1: movups [[ARG6:.*]], xmmword ptr {{.*}} | 179 ; OPTM1: movups [[ARG6:.*]], xmmword ptr {{.*}} |
181 ; OPTM1: movups xmmword ptr [esp + 16], [[ARG6]] | 180 ; OPTM1: movups xmmword ptr [esp + 16], [[ARG6]] |
182 ; OPTM1: movups xmm0, xmmword ptr {{.*}} | 181 ; OPTM1: movups xmm0, xmmword ptr {{.*}} |
183 ; OPTM1: movups xmm1, xmmword ptr {{.*}} | 182 ; OPTM1: movups xmm1, xmmword ptr {{.*}} |
184 ; OPTM1: movups xmm2, xmmword ptr {{.*}} | 183 ; OPTM1: movups xmm2, xmmword ptr {{.*}} |
185 ; OPTM1: movups xmm3, xmmword ptr {{.*}} | 184 ; OPTM1: movups xmm3, xmmword ptr {{.*}} |
186 ; OPTM1: call -4 | 185 ; OPTM1: call -4 |
187 ; OPTM1-NEXT: add esp, 32 | 186 ; OPTM1-NEXT: add esp, 32 |
188 ; OPTM1: ret | |
189 } | 187 } |
190 | 188 |
191 declare void @InterspersedVectorArgs(<4 x float>, i64, <4 x float>, i64, <4 x fl oat>, float, <4 x float>, double, <4 x float>, i32, <4 x float>) | 189 declare void @InterspersedVectorArgs(<4 x float>, i64, <4 x float>, i64, <4 x fl oat>, float, <4 x float>, double, <4 x float>, i32, <4 x float>) |
192 | 190 |
193 define void @test_passing_vectors_interspersed(<4 x float> %arg0, <4 x float> %a rg1, <4 x float> %arg2, <4 x float> %arg3, <4 x float> %arg4, <4 x float> %arg5, <4 x float> %arg6, <4 x float> %arg7, <4 x float> %arg8, <4 x float> %arg9) { | 191 define void @test_passing_vectors_interspersed(<4 x float> %arg0, <4 x float> %a rg1, <4 x float> %arg2, <4 x float> %arg3, <4 x float> %arg4, <4 x float> %arg5, <4 x float> %arg6, <4 x float> %arg7, <4 x float> %arg8, <4 x float> %arg9) { |
194 entry: | 192 entry: |
195 ; Kills XMM registers so that no in-arg lowering code interferes | 193 ; Kills XMM registers so that no in-arg lowering code interferes |
196 ; with the test. | 194 ; with the test. |
197 call void @killXmmRegisters() | 195 call void @killXmmRegisters() |
198 call void @InterspersedVectorArgs(<4 x float> %arg9, i64 0, <4 x float> %arg8, i64 1, <4 x float> %arg7, float 2.000000e+00, <4 x float> %arg6, double 3.00000 0e+00, <4 x float> %arg5, i32 4, <4 x float> %arg4) | 196 call void @InterspersedVectorArgs(<4 x float> %arg9, i64 0, <4 x float> %arg8, i64 1, <4 x float> %arg7, float 2.000000e+00, <4 x float> %arg6, double 3.00000 0e+00, <4 x float> %arg5, i32 4, <4 x float> %arg4) |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 ; OPTM1-LABEL: test_receiving_vectors: | 243 ; OPTM1-LABEL: test_receiving_vectors: |
246 ; OPTM1: call -4 | 244 ; OPTM1: call -4 |
247 ; OPTM1: movups {{.*}}, xmm0 | 245 ; OPTM1: movups {{.*}}, xmm0 |
248 ; OPTM1: movups xmm0, {{.*}} | 246 ; OPTM1: movups xmm0, {{.*}} |
249 ; OPTM1: call -4 | 247 ; OPTM1: call -4 |
250 ; OPTM1: ret | 248 ; OPTM1: ret |
251 } | 249 } |
252 | 250 |
253 ; ERRORS-NOT: ICE translation error | 251 ; ERRORS-NOT: ICE translation error |
254 ; DUMP-NOT: SZ | 252 ; DUMP-NOT: SZ |
OLD | NEW |