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: %p2i -i %s --args -O2 --verbose none \ | 8 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s | 9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s |
10 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 10 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 } | 138 } |
139 | 139 |
140 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) { | 140 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) { |
141 entry: | 141 entry: |
142 %res = fptoui <4 x float> %arg to <4 x i32> | 142 %res = fptoui <4 x float> %arg to <4 x i32> |
143 ret <4 x i32> %res | 143 ret <4 x i32> %res |
144 | 144 |
145 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32: | 145 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32: |
146 ; CHECK: call -4 | 146 ; CHECK: call -4 |
147 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32 | 147 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32 |
148 ; CALLTARGETS: call Sz_fptoui_v4f32 | 148 ; CALLTARGETS: .long Sz_fptoui_v4f32 |
149 } | 149 } |
150 | 150 |
151 ; [su]itofp operations | 151 ; [su]itofp operations |
152 | 152 |
153 define <4 x float> @test_sitofp_v4i32_to_v4f32(<4 x i32> %arg) { | 153 define <4 x float> @test_sitofp_v4i32_to_v4f32(<4 x i32> %arg) { |
154 entry: | 154 entry: |
155 %res = sitofp <4 x i32> %arg to <4 x float> | 155 %res = sitofp <4 x i32> %arg to <4 x float> |
156 ret <4 x float> %res | 156 ret <4 x float> %res |
157 | 157 |
158 ; CHECK-LABEL: test_sitofp_v4i32_to_v4f32: | 158 ; CHECK-LABEL: test_sitofp_v4i32_to_v4f32: |
159 ; CHECK: cvtdq2ps | 159 ; CHECK: cvtdq2ps |
160 } | 160 } |
161 | 161 |
162 define <4 x float> @test_uitofp_v4i32_to_v4f32(<4 x i32> %arg) { | 162 define <4 x float> @test_uitofp_v4i32_to_v4f32(<4 x i32> %arg) { |
163 entry: | 163 entry: |
164 %res = uitofp <4 x i32> %arg to <4 x float> | 164 %res = uitofp <4 x i32> %arg to <4 x float> |
165 ret <4 x float> %res | 165 ret <4 x float> %res |
166 | 166 |
167 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: | 167 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: |
168 ; CHECK: call -4 | 168 ; CHECK: call -4 |
169 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 | 169 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 |
170 ; CALLTARGETS: call Sz_uitofp_v4i32 | 170 ; CALLTARGETS: .long Sz_uitofp_v4i32 |
171 } | 171 } |
OLD | NEW |