OLD | NEW |
1 ; This file checks support for comparing vector values with the icmp | 1 ; This file checks support for comparing vector values with the icmp |
2 ; instruction. | 2 ; instruction. |
3 | 3 |
4 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 4 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
5 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 5 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
7 ; RUN: %p2i -i %s --args -Om1 --verbose none \ | 7 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
8 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 8 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
10 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s | |
11 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s | |
12 | 10 |
13 ; Check that sext elimination occurs when the result of the comparison | 11 ; Check that sext elimination occurs when the result of the comparison |
14 ; instruction is alrady sign extended. Sign extension to 4 x i32 uses | 12 ; instruction is alrady sign extended. Sign extension to 4 x i32 uses |
15 ; the pslld instruction. | 13 ; the pslld instruction. |
16 define <4 x i32> @test_sext_elimination(<4 x i32> %a, <4 x i32> %b) { | 14 define <4 x i32> @test_sext_elimination(<4 x i32> %a, <4 x i32> %b) { |
17 entry: | 15 entry: |
18 %res.trunc = icmp eq <4 x i32> %a, %b | 16 %res.trunc = icmp eq <4 x i32> %a, %b |
19 %res = sext <4 x i1> %res.trunc to <4 x i32> | 17 %res = sext <4 x i1> %res.trunc to <4 x i32> |
20 ret <4 x i32> %res | 18 ret <4 x i32> %res |
21 ; CHECK-LABEL: test_sext_elimination: | 19 ; CHECK-LABEL: test_sext_elimination: |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 } | 492 } |
495 | 493 |
496 define <16 x i1> @test_icmp_v16i1_ult(<16 x i1> %a, <16 x i1> %b) { | 494 define <16 x i1> @test_icmp_v16i1_ult(<16 x i1> %a, <16 x i1> %b) { |
497 entry: | 495 entry: |
498 %res = icmp ult <16 x i1> %a, %b | 496 %res = icmp ult <16 x i1> %a, %b |
499 ret <16 x i1> %res | 497 ret <16 x i1> %res |
500 ; CHECK-LABEL: test_icmp_v16i1_ult: | 498 ; CHECK-LABEL: test_icmp_v16i1_ult: |
501 ; CHECK: pxor | 499 ; CHECK: pxor |
502 ; CHECK: pcmpgtb | 500 ; CHECK: pcmpgtb |
503 } | 501 } |
504 | |
505 ; ERRORS-NOT: ICE translation error | |
506 ; DUMP-NOT: SZ | |
OLD | NEW |