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