From 029a8acc9057480021eefc88d435bccf99590985 Mon Sep 17 00:00:00 2001 From: xleroy Date: Tue, 15 Apr 2014 07:58:02 +0000 Subject: 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 --- cfrontend/Csem.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cfrontend/Csem.v') diff --git a/cfrontend/Csem.v b/cfrontend/Csem.v index 5acf23f8..a43ee006 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, -- cgit