From 265fa07b34a813ba9d8249ddad82d71e6002c10d Mon Sep 17 00:00:00 2001 From: xleroy Date: Thu, 2 Sep 2010 12:42:19 +0000 Subject: Merge of the reuse-temps branch: - Reload temporaries are marked as destroyed (set to Vundef) across operations in the semantics of LTL, LTLin, Linear and Mach, allowing Asmgen to reuse them. - Added IA32 port. - Cleaned up float conversions and axiomatization of floats. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1499 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- common/Values.v | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/Values.v') diff --git a/common/Values.v b/common/Values.v index 236a5ae7..af242c93 100644 --- a/common/Values.v +++ b/common/Values.v @@ -139,6 +139,12 @@ Definition floatofintu (v: val) : val := | _ => Vundef end. +Definition floatofwords (v1 v2: val) : val := + match v1, v2 with + | Vint n1, Vint n2 => Vfloat (Float.from_words n1 n2) + | _, _ => Vundef + end. + Definition notint (v: val) : val := match v with | Vint n => Vint (Int.xor n Int.mone) -- cgit