| OLD | NEW |
| 1 ; This file tests bitcasts of vector type. For most operations, these | 1 ; This file tests bitcasts of vector type. For most operations, these |
| 2 ; should be lowered to a no-op on -O2. | 2 ; should be lowered to a no-op on -O2. |
| 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 - \ | 15 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - \ |
| 16 ; RUN: | FileCheck --check-prefix=OPTM1 %s | 16 ; RUN: | FileCheck --check-prefix=OPTM1 %s |
| 17 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 17 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
| 18 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 18 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s |
| 19 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | |
| 20 ; RUN: | FileCheck --check-prefix=DUMP %s | |
| 21 | 19 |
| 22 define <16 x i8> @test_bitcast_v16i8_to_v16i8(<16 x i8> %arg) { | 20 define <16 x i8> @test_bitcast_v16i8_to_v16i8(<16 x i8> %arg) { |
| 23 entry: | 21 entry: |
| 24 %res = bitcast <16 x i8> %arg to <16 x i8> | 22 %res = bitcast <16 x i8> %arg to <16 x i8> |
| 25 ret <16 x i8> %res | 23 ret <16 x i8> %res |
| 26 | 24 |
| 27 ; CHECK-LABEL: test_bitcast_v16i8_to_v16i8 | 25 ; CHECK-LABEL: test_bitcast_v16i8_to_v16i8 |
| 28 ; CHECK-NEXT: ret | 26 ; CHECK-NEXT: ret |
| 29 } | 27 } |
| 30 | 28 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 ; CALLTARGETS-LABEL: test_bitcast_i16_to_v16i1 | 214 ; CALLTARGETS-LABEL: test_bitcast_i16_to_v16i1 |
| 217 ; CHECK: call -4 | 215 ; CHECK: call -4 |
| 218 ; CALLTARGETS: call Sz_bitcast_i16_to_v16i1 | 216 ; CALLTARGETS: call Sz_bitcast_i16_to_v16i1 |
| 219 | 217 |
| 220 ; OPTM1-LABEL: test_bitcast_i16_to_v16i1: | 218 ; OPTM1-LABEL: test_bitcast_i16_to_v16i1: |
| 221 ; OPTM1: call -4 | 219 ; OPTM1: call -4 |
| 222 } | 220 } |
| 223 | 221 |
| 224 ; ERRORS-NOT: ICE translation error | 222 ; ERRORS-NOT: ICE translation error |
| 225 ; DUMP-NOT: SZ | 223 ; DUMP-NOT: SZ |
| OLD | NEW |