Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: tests_lit/llvm2ice_tests/vector-icmp.ll

Issue 955003002: Subzero: Clean up function header emission. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the tests that were broken as a result Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/vector-fcmp.ll ('k') | tests_lit/llvm2ice_tests/vector-ops.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/vector-fcmp.ll ('k') | tests_lit/llvm2ice_tests/vector-ops.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698