summaryrefslogtreecommitdiff
path: root/arm/SelectOpproof.v
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-01-02 15:59:11 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-01-02 15:59:11 +0000
commit29e0c9b2c99a437fc9dfab66e1abdd546a5308d6 (patch)
tree2c3e924125d9b91e5e9b57b87c80f5b5ce9c6710 /arm/SelectOpproof.v
parentc71e155dbbf34fa17d14e8eee50a019c8ccfd6f5 (diff)
Updated ARM backend wrt new static analyses and optimizations.
NeedOp, Deadcode: must have distinct needs per argument of an operator. This change remains to be propagated to IA32 and PPC. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2399 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'arm/SelectOpproof.v')
-rw-r--r--arm/SelectOpproof.v14
1 files changed, 2 insertions, 12 deletions
diff --git a/arm/SelectOpproof.v b/arm/SelectOpproof.v
index 9beb1ad..9fbab44 100644
--- a/arm/SelectOpproof.v
+++ b/arm/SelectOpproof.v
@@ -716,12 +716,7 @@ Qed.
Theorem eval_cast8signed: unary_constructor_sound cast8signed (Val.sign_ext 8).
Proof.
- red; intros. unfold cast8signed.
- exploit (eval_shlimm (Int.repr 24)); eauto. intros [v1 [A1 B1]].
- exploit (eval_shrimm (Int.repr 24)). eexact A1. intros [v2 [A2 B2]].
- exists v2; split; auto.
- destruct x; simpl; auto. simpl in *. inv B1. simpl in *. inv B2.
- rewrite Int.sign_ext_shr_shl. auto. compute; auto.
+ red; intros. unfold cast8signed. TrivialExists.
Qed.
Theorem eval_cast8unsigned: unary_constructor_sound cast8unsigned (Val.zero_ext 8).
@@ -732,12 +727,7 @@ Qed.
Theorem eval_cast16signed: unary_constructor_sound cast16signed (Val.sign_ext 16).
Proof.
- red; intros. unfold cast16signed.
- exploit (eval_shlimm (Int.repr 16)); eauto. intros [v1 [A1 B1]].
- exploit (eval_shrimm (Int.repr 16)). eexact A1. intros [v2 [A2 B2]].
- exists v2; split; auto.
- destruct x; simpl; auto. simpl in *. inv B1. simpl in *. inv B2.
- rewrite Int.sign_ext_shr_shl. auto. compute; auto.
+ red; intros. unfold cast16signed. TrivialExists.
Qed.
Theorem eval_cast16unsigned: unary_constructor_sound cast16unsigned (Val.zero_ext 16).