| 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 --assemble --disassemble --args -O2 --verbose none \ | 4 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 | FileCheck %s |
| 5 ; RUN: | FileCheck %s | 5 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 | FileCheck %s |
| 6 ; RUN: %p2i -i %s --assemble --disassemble --args -Om1 --verbose none \ | |
| 7 ; RUN: | FileCheck %s | |
| 8 | 6 |
| 9 ; Check that sext elimination occurs when the result of the comparison | 7 ; Check that sext elimination occurs when the result of the comparison |
| 10 ; instruction is alrady sign extended. Sign extension to 4 x i32 uses | 8 ; instruction is alrady sign extended. Sign extension to 4 x i32 uses |
| 11 ; the pslld instruction. | 9 ; the pslld instruction. |
| 12 define <4 x i32> @test_sext_elimination(<4 x i32> %a, <4 x i32> %b) { | 10 define <4 x i32> @test_sext_elimination(<4 x i32> %a, <4 x i32> %b) { |
| 13 entry: | 11 entry: |
| 14 %res.trunc = icmp eq <4 x i32> %a, %b | 12 %res.trunc = icmp eq <4 x i32> %a, %b |
| 15 %res = sext <4 x i1> %res.trunc to <4 x i32> | 13 %res = sext <4 x i1> %res.trunc to <4 x i32> |
| 16 ret <4 x i32> %res | 14 ret <4 x i32> %res |
| 17 ; CHECK-LABEL: test_sext_elimination | 15 ; CHECK-LABEL: test_sext_elimination |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 } | 488 } |
| 491 | 489 |
| 492 define <16 x i1> @test_icmp_v16i1_ult(<16 x i1> %a, <16 x i1> %b) { | 490 define <16 x i1> @test_icmp_v16i1_ult(<16 x i1> %a, <16 x i1> %b) { |
| 493 entry: | 491 entry: |
| 494 %res = icmp ult <16 x i1> %a, %b | 492 %res = icmp ult <16 x i1> %a, %b |
| 495 ret <16 x i1> %res | 493 ret <16 x i1> %res |
| 496 ; CHECK-LABEL: test_icmp_v16i1_ult | 494 ; CHECK-LABEL: test_icmp_v16i1_ult |
| 497 ; CHECK: pxor | 495 ; CHECK: pxor |
| 498 ; CHECK: pcmpgtb | 496 ; CHECK: pcmpgtb |
| 499 } | 497 } |
| OLD | NEW |