From 1cb7b7b8b70cb94c9bc9ef34517d95e66c4c336f Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 28 Jul 2014 08:45:24 +0000 Subject: The NaN behavior of float_of_single differs on PowerPC and on IA32/ARM. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2550 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- arm/Archi.v | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'arm') diff --git a/arm/Archi.v b/arm/Archi.v index 00d9895..e4abf00 100644 --- a/arm/Archi.v +++ b/arm/Archi.v @@ -43,9 +43,12 @@ Definition choose_binop_pl_32 (s1: bool) (pl1: nan_pl 24) (s2: bool) (pl2: nan_p (Pos.testbit (proj1_sig pl1) 22 && negb (Pos.testbit (proj1_sig pl2) 22))%bool. +Definition float_of_single_preserves_sNaN := false. + Global Opaque big_endian default_pl_64 choose_binop_pl_64 - default_pl_32 choose_binop_pl_32. + default_pl_32 choose_binop_pl_32 + float_of_single_preserves_sNaN. (** Which ABI to use: either the standard ARM EABI with floats passed in integer registers, or the "hardfloat" variant of the EABI -- cgit v1.2.3