| 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 --assemble --disassemble --args -O2 --verbose none \ | 4 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \ |
| 5 ; RUN: | FileCheck %s | 5 ; RUN: | FileCheck %s |
| 6 ; RUN: %p2i -i %s --assemble --disassemble --args -Om1 --verbose none \ | 6 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \ |
| 7 ; RUN: | FileCheck --check-prefix=OPTM1 %s | 7 ; RUN: | FileCheck --check-prefix=OPTM1 %s |
| 8 | 8 |
| 9 ; The first five functions test that vectors are moved from their | 9 ; The first five functions test that vectors are moved from their |
| 10 ; correct argument location to xmm0. | 10 ; correct argument location to xmm0. |
| 11 | 11 |
| 12 define <4 x float> @test_returning_arg0(<4 x float> %arg0, <4 x float> %arg1, <4
x float> %arg2, <4 x float> %arg3, <4 x float> %arg4, <4 x float> %arg5) { | 12 define <4 x float> @test_returning_arg0(<4 x float> %arg0, <4 x float> %arg1, <4
x float> %arg2, <4 x float> %arg3, <4 x float> %arg4, <4 x float> %arg5) { |
| 13 entry: | 13 entry: |
| 14 ret <4 x float> %arg0 | 14 ret <4 x float> %arg0 |
| 15 ; CHECK-LABEL: test_returning_arg0 | 15 ; CHECK-LABEL: test_returning_arg0 |
| 16 ; CHECK-NOT: mov | 16 ; CHECK-NOT: mov |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 ; CHECK: call {{.*}} R_{{.*}} VectorReturn | 235 ; CHECK: call {{.*}} R_{{.*}} VectorReturn |
| 236 ; CHECK: ret | 236 ; CHECK: ret |
| 237 | 237 |
| 238 ; OPTM1-LABEL: test_receiving_vectors | 238 ; OPTM1-LABEL: test_receiving_vectors |
| 239 ; OPTM1: call {{.*}} R_{{.*}} VectorReturn | 239 ; OPTM1: call {{.*}} R_{{.*}} VectorReturn |
| 240 ; OPTM1: movups {{.*}},xmm0 | 240 ; OPTM1: movups {{.*}},xmm0 |
| 241 ; OPTM1: movups xmm0,{{.*}} | 241 ; OPTM1: movups xmm0,{{.*}} |
| 242 ; OPTM1: call {{.*}} R_{{.*}} VectorReturn | 242 ; OPTM1: call {{.*}} R_{{.*}} VectorReturn |
| 243 ; OPTM1: ret | 243 ; OPTM1: ret |
| 244 } | 244 } |
| OLD | NEW |