summaryrefslogtreecommitdiff
path: root/ia32/Asmgenproof.v
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2011-08-18 15:28:46 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2011-08-18 15:28:46 +0000
commit5b73a4f223a0cadb7df3f1320fed86cde0d67d6e (patch)
treefd315fb086acb9e81882a2bc1b255b9562d8940d /ia32/Asmgenproof.v
parent50ee6bdf639ffba989968abb9c24a57126ab35a4 (diff)
More careful treatment of 'load immediate 0' as 'xor self'
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1718 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'ia32/Asmgenproof.v')
-rw-r--r--ia32/Asmgenproof.v2
1 files changed, 2 insertions, 0 deletions
diff --git a/ia32/Asmgenproof.v b/ia32/Asmgenproof.v
index 5b98d27..e8c6757 100644
--- a/ia32/Asmgenproof.v
+++ b/ia32/Asmgenproof.v
@@ -455,6 +455,8 @@ Remark transl_op_label:
Proof.
unfold transl_op; intros. destruct op; ArgsInv; auto.
eapply mk_mov_label; eauto.
+ destruct (Int.eq_dec i Int.zero); auto.
+ destruct (Float.eq_dec f Float.zero); auto.
eapply mk_intconv_label; eauto.
eapply mk_intconv_label; eauto.
eapply mk_intconv_label; eauto.