| OLD | NEW |
| 1 ; This file tests casting / conversion operations that apply to vector types. | 1 ; This file tests casting / conversion operations that apply to vector types. |
| 2 ; bitcast operations are in vector-bitcast.ll. | 2 ; bitcast operations are in vector-bitcast.ll. |
| 3 | 3 |
| 4 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer | 4 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer |
| 5 ; doesn't know how to symbolize non-section-local functions. | 5 ; doesn't know how to symbolize non-section-local functions. |
| 6 ; The newer LLVM 3.6 one does work, but watch out for other bugs. | 6 ; The newer LLVM 3.6 one does work, but watch out for other bugs. |
| 7 | 7 |
| 8 ; RUN: %llvm2ice -O2 --verbose none %s \ | 8 ; RUN: %llvm2ice -O2 --verbose none %s \ |
| 9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s | 9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s |
| 10 ; RUN: %llvm2ice -O2 --verbose none %s \ | 10 ; RUN: %llvm2ice -O2 --verbose none %s \ |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 ; fpto[us]i operations | 133 ; fpto[us]i operations |
| 134 | 134 |
| 135 define <4 x i32> @test_fptosi_v4f32_to_v4i32(<4 x float> %arg) { | 135 define <4 x i32> @test_fptosi_v4f32_to_v4i32(<4 x float> %arg) { |
| 136 entry: | 136 entry: |
| 137 %res = fptosi <4 x float> %arg to <4 x i32> | 137 %res = fptosi <4 x float> %arg to <4 x i32> |
| 138 ret <4 x i32> %res | 138 ret <4 x i32> %res |
| 139 | 139 |
| 140 ; CHECK-LABEL: test_fptosi_v4f32_to_v4i32: | 140 ; CHECK-LABEL: test_fptosi_v4f32_to_v4i32: |
| 141 ; CHECK: cvtps2dq | 141 ; CHECK: cvttps2dq |
| 142 } | 142 } |
| 143 | 143 |
| 144 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) { | 144 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) { |
| 145 entry: | 145 entry: |
| 146 %res = fptoui <4 x float> %arg to <4 x i32> | 146 %res = fptoui <4 x float> %arg to <4 x i32> |
| 147 ret <4 x i32> %res | 147 ret <4 x i32> %res |
| 148 | 148 |
| 149 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32: | 149 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32: |
| 150 ; CHECK: call -4 | 150 ; CHECK: call -4 |
| 151 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32 | 151 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 169 ret <4 x float> %res | 169 ret <4 x float> %res |
| 170 | 170 |
| 171 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: | 171 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: |
| 172 ; CHECK: call -4 | 172 ; CHECK: call -4 |
| 173 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 | 173 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 |
| 174 ; CALLTARGETS: call Sz_uitofp_v4i32 | 174 ; CALLTARGETS: call Sz_uitofp_v4i32 |
| 175 } | 175 } |
| 176 | 176 |
| 177 ; ERRORS-NOT: ICE translation error | 177 ; ERRORS-NOT: ICE translation error |
| 178 ; DUMP-NOT: SZ | 178 ; DUMP-NOT: SZ |
| OLD | NEW |