diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-04-15 07:58:02 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-04-15 07:58:02 +0000 |
commit | 029a8acc9057480021eefc88d435bccf99590985 (patch) | |
tree | f2204e82b3761cb85ed88f8193f239cb2cbc27a5 /cfrontend/Csem.v | |
parent | d71c09d94b95fe3ef7658249abb228f0af294572 (diff) |
Use "incrdecr_type ty" instead of "typeconv ty" as the intermediate type
for Epostincr operations.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2455 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cfrontend/Csem.v')
-rw-r--r-- | cfrontend/Csem.v | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cfrontend/Csem.v b/cfrontend/Csem.v index 5acf23f..a43ee00 100644 --- a/cfrontend/Csem.v +++ b/cfrontend/Csem.v @@ -286,7 +286,9 @@ Inductive rred: expr -> mem -> trace -> expr -> mem -> Prop := op = match id with Incr => Oadd | Decr => Osub end -> rred (Epostincr id (Eloc b ofs ty) ty) m t (Ecomma (Eassign (Eloc b ofs ty) - (Ebinop op (Eval v1 ty) (Eval (Vint Int.one) type_int32s) (typeconv ty)) + (Ebinop op (Eval v1 ty) + (Eval (Vint Int.one) type_int32s) + (incrdecr_type ty)) ty) (Eval v1 ty) ty) m | red_comma: forall v ty1 r2 ty m, |