| 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 | |
| 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. | |
| 7 | |
| 8 ; RUN: %p2i -i %s --args -O2 --verbose none \ | |
| 9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s | |
| 10 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 4 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
| 11 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 5 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
| 12 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
| 13 ; RUN: %p2i -i %s --args -Om1 --verbose none \ | 7 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
| 14 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 8 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
| 15 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
| 16 | 10 |
| 17 ; sext operations | 11 ; sext operations |
| 18 | 12 |
| 19 define <16 x i8> @test_sext_v16i1_to_v16i8(<16 x i1> %arg) { | 13 define <16 x i8> @test_sext_v16i1_to_v16i8(<16 x i1> %arg) { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 ; CHECK-LABEL: test_fptosi_v4f32_to_v4i32: | 130 ; CHECK-LABEL: test_fptosi_v4f32_to_v4i32: |
| 137 ; CHECK: cvttps2dq | 131 ; CHECK: cvttps2dq |
| 138 } | 132 } |
| 139 | 133 |
| 140 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) { | 134 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) { |
| 141 entry: | 135 entry: |
| 142 %res = fptoui <4 x float> %arg to <4 x i32> | 136 %res = fptoui <4 x float> %arg to <4 x i32> |
| 143 ret <4 x i32> %res | 137 ret <4 x i32> %res |
| 144 | 138 |
| 145 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32: | 139 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32: |
| 146 ; CHECK: call -4 | 140 ; CHECK: call Sz_fptoui_v4f32 |
| 147 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32 | |
| 148 ; CALLTARGETS: .long Sz_fptoui_v4f32 | |
| 149 } | 141 } |
| 150 | 142 |
| 151 ; [su]itofp operations | 143 ; [su]itofp operations |
| 152 | 144 |
| 153 define <4 x float> @test_sitofp_v4i32_to_v4f32(<4 x i32> %arg) { | 145 define <4 x float> @test_sitofp_v4i32_to_v4f32(<4 x i32> %arg) { |
| 154 entry: | 146 entry: |
| 155 %res = sitofp <4 x i32> %arg to <4 x float> | 147 %res = sitofp <4 x i32> %arg to <4 x float> |
| 156 ret <4 x float> %res | 148 ret <4 x float> %res |
| 157 | 149 |
| 158 ; CHECK-LABEL: test_sitofp_v4i32_to_v4f32: | 150 ; CHECK-LABEL: test_sitofp_v4i32_to_v4f32: |
| 159 ; CHECK: cvtdq2ps | 151 ; CHECK: cvtdq2ps |
| 160 } | 152 } |
| 161 | 153 |
| 162 define <4 x float> @test_uitofp_v4i32_to_v4f32(<4 x i32> %arg) { | 154 define <4 x float> @test_uitofp_v4i32_to_v4f32(<4 x i32> %arg) { |
| 163 entry: | 155 entry: |
| 164 %res = uitofp <4 x i32> %arg to <4 x float> | 156 %res = uitofp <4 x i32> %arg to <4 x float> |
| 165 ret <4 x float> %res | 157 ret <4 x float> %res |
| 166 | 158 |
| 167 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: | 159 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: |
| 168 ; CHECK: call -4 | 160 ; CHECK: call Sz_uitofp_v4i32 |
| 169 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 | |
| 170 ; CALLTARGETS: .long Sz_uitofp_v4i32 | |
| 171 } | 161 } |
| OLD | NEW |