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 \ |
11 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 11 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
12 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 12 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
13 ; RUN: %p2i -i %s --args -Om1 --verbose none \ | 13 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
14 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 14 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
15 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 15 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
16 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s | |
17 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s | |
18 | 16 |
19 ; sext operations | 17 ; sext operations |
20 | 18 |
21 define <16 x i8> @test_sext_v16i1_to_v16i8(<16 x i1> %arg) { | 19 define <16 x i8> @test_sext_v16i1_to_v16i8(<16 x i1> %arg) { |
22 entry: | 20 entry: |
23 %res = sext <16 x i1> %arg to <16 x i8> | 21 %res = sext <16 x i1> %arg to <16 x i8> |
24 ret <16 x i8> %res | 22 ret <16 x i8> %res |
25 | 23 |
26 ; CHECK-LABEL: test_sext_v16i1_to_v16i8: | 24 ; CHECK-LABEL: test_sext_v16i1_to_v16i8: |
27 ; CHECK: pxor | 25 ; CHECK: pxor |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 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) { |
165 entry: | 163 entry: |
166 %res = uitofp <4 x i32> %arg to <4 x float> | 164 %res = uitofp <4 x i32> %arg to <4 x float> |
167 ret <4 x float> %res | 165 ret <4 x float> %res |
168 | 166 |
169 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: | 167 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: |
170 ; CHECK: call -4 | 168 ; CHECK: call -4 |
171 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 | 169 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 |
172 ; CALLTARGETS: call Sz_uitofp_v4i32 | 170 ; CALLTARGETS: call Sz_uitofp_v4i32 |
173 } | 171 } |
174 | |
175 ; ERRORS-NOT: ICE translation error | |
176 ; DUMP-NOT: SZ | |
OLD | NEW |