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

Unified Diff: tests_lit/llvm2ice_tests/bool-opt.ll

Issue 511543002: Subzero: Fix some legalization issues involving immediates. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Use CHECK-LABEL Created 6 years, 4 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/bool-opt.ll
diff --git a/tests_lit/llvm2ice_tests/bool-opt.ll b/tests_lit/llvm2ice_tests/bool-opt.ll
index 40cc44b193e9dc5129117aba31eb050fd4cfd324..92d8d44d5b2461d9b3ff3d6f9cf295abedf179e0 100644
--- a/tests_lit/llvm2ice_tests/bool-opt.ll
+++ b/tests_lit/llvm2ice_tests/bool-opt.ll
@@ -14,6 +14,18 @@ entry:
ret void
}
+; Check that correct addressing modes are used for comparing two
+; immediates.
+define void @testIcmpImm() {
+entry:
+ %cmp = icmp eq i32 1, 2
+ %cmp_ext = zext i1 %cmp to i32
+ tail call void @use(i32 %cmp_ext)
+ ret void
+}
+; CHECK-LABEL: testIcmpImm
+; CHECK-NOT: cmp {{[0-9]+}}, {{[0-9]+}}
jvoung (off chromium) 2014/08/26 21:59:46 Do you need the second pair of ints after the comm
Jim Stichnoth 2014/08/27 06:19:47 Done.
+
declare void @use(i32)
; CHECK-NOT: ICE translation error

Powered by Google App Engine
This is Rietveld 408576698