From 4297fcb821c3188449b64184af73e41491a6118f Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 23 Jul 2012 15:01:54 +0000 Subject: - Revised non-overflow constraints on memory injections so that injections compose (Values, Memdata, Memory) - Memory chunks: Mfloat64 now has alignment 8; introduced Mfloat64al32 that works like old Mfloat64 (i.e. has alignment 4); simplified handling of memcpy builtin accordingly. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1983 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- cfrontend/Cminorgen.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cfrontend/Cminorgen.v') diff --git a/cfrontend/Cminorgen.v b/cfrontend/Cminorgen.v index 20e7bdb..c6d6fd5 100644 --- a/cfrontend/Cminorgen.v +++ b/cfrontend/Cminorgen.v @@ -219,6 +219,7 @@ Definition of_chunk (chunk: memory_chunk) := | Mint32 => Any | Mfloat32 => Float32 | Mfloat64 => Any + | Mfloat64al32 => Any end. Definition unop (op: unary_operation) (a: approx) := @@ -322,7 +323,7 @@ Definition var_set_self (cenv: compilenv) (id: ident) (k: stmt): res stmt := | Var_stack_scalar chunk ofs => OK (Sseq (make_store chunk (make_stackaddr ofs) (Evar (for_var id))) k) | Var_stack_array ofs sz al => - OK (Sseq (Sbuiltin None (EF_memcpy sz (Zmin al 4)) + OK (Sseq (Sbuiltin None (EF_memcpy sz al) (make_stackaddr ofs :: Evar (for_var id) :: nil)) k) | _ => Error(msg "Cminorgen.var_set_self") -- cgit v1.2.3