From c4877832826fa26aea9c236f16bdc2de16c98150 Mon Sep 17 00:00:00 2001 From: xleroy Date: Sun, 15 Jan 2012 08:57:09 +0000 Subject: Added volatile_read_global and volatile_store_global builtins. Finished updating IA32 and ARM ports. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1792 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- powerpc/ConstpropOp.vp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'powerpc/ConstpropOp.vp') diff --git a/powerpc/ConstpropOp.vp b/powerpc/ConstpropOp.vp index 22e89e31..cb958d44 100644 --- a/powerpc/ConstpropOp.vp +++ b/powerpc/ConstpropOp.vp @@ -274,4 +274,15 @@ Nondetfunction addr_strength_reduction (addr, args) end. +Nondetfunction builtin_strength_reduction + (ef: external_function) (args: list reg) (vl: list approx) := + match ef, args, vl with + | EF_vload chunk, r1 :: nil, G symb n1 :: nil => + (EF_vload_global chunk symb n1, nil) + | EF_vstore chunk, r1 :: r2 :: nil, G symb n1 :: v2 :: nil => + (EF_vstore_global chunk symb n1, r2 :: nil) + | _, _, _ => + (ef, args) + end. + End STRENGTH_REDUCTION. -- cgit