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..24843271b39c820963cf2ab77e0694eacd8d6b0a 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]+}}, |
+ |
declare void @use(i32) |
; CHECK-NOT: ICE translation error |