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

Unified Diff: tests_lit/llvm2ice_tests/test_i1.ll

Issue 1394413002: Subzero: Don't "and" i1 values with 1. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: tests_lit/llvm2ice_tests/test_i1.ll
diff --git a/tests_lit/llvm2ice_tests/test_i1.ll b/tests_lit/llvm2ice_tests/test_i1.ll
index 21deaa7614b2e254d8301da3d4249024e0db6e06..b437b3109bfe8377c9709eda796dc83b160836db 100644
--- a/tests_lit/llvm2ice_tests/test_i1.ll
+++ b/tests_lit/llvm2ice_tests/test_i1.ll
@@ -87,7 +87,7 @@ entry:
; match the trunc instruction
; CHECK: and {{.*}},0x1
; match the zext i1 instruction (NOTE: no mov need between i1 and i8).
-; CHECK: and {{.*}},0x1
+; CHECK-NOT: and {{.*}},0x1
; ARM32-LABEL: testZextI8
; ARM32: and {{.*}}, #1
; ARM32: and {{.*}}, #1
@@ -105,7 +105,7 @@ entry:
; CHECK: and {{.*}},0x1
; match the zext i1 instruction (note 32-bit reg is used because it's shorter).
; CHECK: movzx [[REG:e.*]],{{[a-d]l|BYTE PTR}}
-; CHECK: and [[REG]],0x1
+; CHECK-NOT: and [[REG]],0x1
; ARM32-LABEL: testZextI16
; match the trunc instruction
@@ -125,7 +125,7 @@ entry:
; CHECK: and {{.*}},0x1
; match the zext i1 instruction
; CHECK: movzx
-; CHECK: and {{.*}},0x1
+; CHECK-NOT: and {{.*}},0x1
; ARM32-LABEL: testZextI32
; ARM32: and {{.*}}, #1
; ARM32: and {{.*}}, #1
@@ -142,7 +142,6 @@ entry:
; CHECK: and {{.*}},0x1
; match the zext i1 instruction
; CHECK: movzx
-; CHECK: and {{.*}},0x1
; CHECK: mov {{.*}},0x0
; ARM32-LABEL: testZextI64
; ARM32: and {{.*}}, #1
@@ -257,7 +256,7 @@ define internal i32 @testZextTrue() {
}
; CHECK-LABEL: testZextTrue
; CHECK: movzx
-; CHECK: and {{.*}},0x1
+; CHECK-NOT: and {{.*}},0x1
; ARM32-LABEL: testZextTrue
; ARM32: mov{{.*}}, #1
; ARM32: and {{.*}}, #1
« src/IceTargetLoweringX86BaseImpl.h ('K') | « tests_lit/llvm2ice_tests/fp.convert.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698