Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2023 07:35:58 GMT
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e59b6e48f4c8 - main - gdtoa: Regenerate configuration headers for 32-bit arm.
Message-ID:  <202308130735.37D7Zwa9035394@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mmel:

URL: https://cgit.FreeBSD.org/src/commit/?id=e59b6e48f4c8bbfee43a1bc6d9fd47691d3bd603

commit e59b6e48f4c8bbfee43a1bc6d9fd47691d3bd603
Author:     Michal Meloun <mmel@FreeBSD.org>
AuthorDate: 2023-08-13 05:51:56 +0000
Commit:     Michal Meloun <mmel@FreeBSD.org>
CommitDate: 2023-08-13 07:35:48 +0000

    gdtoa: Regenerate configuration headers for 32-bit arm.
    
    These configuration headers were only guessed, but unfortunately not exactly
    correctly. Therefore, re-generate them on real HW.
    
    Generated on CA15, verified on CA9, CA7(with VFP lite) and on 32-bit ARMv9.
    
    PR:     272229
    Reported by:    Robert Clausecker <fuz@FreeBSD.org>
    MFC after:      2 weeks
---
 lib/libc/arm/arith.h   |  9 ++++-----
 lib/libc/arm/gd_qnan.h | 11 +++++------
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/lib/libc/arm/arith.h b/lib/libc/arm/arith.h
index 86121bf9a80c..418f83f64ccb 100644
--- a/lib/libc/arm/arith.h
+++ b/lib/libc/arm/arith.h
@@ -1,16 +1,15 @@
 /*
  * MD header for contrib/gdtoa
  *
- * $FreeBSD$
- */
-
-/*
  * NOTE: The definitions in this file must be correct or strtod(3) and
  * floating point formats in printf(3) will break!  The file can be
  * generated by running contrib/gdtoa/arithchk.c on the target
  * architecture.  See contrib/gdtoa/gdtoaimp.h for details.
+ *
+ * Generated on CA15, verified on CA9, CA7(with VFP lite) and on 32-bit ARMv9.
+ *
  */
 
 #define IEEE_8087
 #define Arith_Kind_ASL 1
-#define Sudden_Underflow
+#define Double_Align
diff --git a/lib/libc/arm/gd_qnan.h b/lib/libc/arm/gd_qnan.h
index 8fa9edd83415..acf13d0b7852 100644
--- a/lib/libc/arm/gd_qnan.h
+++ b/lib/libc/arm/gd_qnan.h
@@ -4,20 +4,19 @@
  * This file can be generated by compiling and running contrib/gdtoa/qnan.c
  * on the target architecture after arith.h has been generated.
  *
- * XXX I don't have ARM hardware, so I just guessed.  --das
+ * Generated on CA15, verified on CA9, CA7(with VFP lite) and on 32-bit ARMv9.
  *
- * $FreeBSD$
  */
 
 #define f_QNAN 0x7fc00000
 #define d_QNAN0 0x0
 #define d_QNAN1 0x7ff80000
 #define ld_QNAN0 0x0
-#define ld_QNAN1 0xc0000000
-#define ld_QNAN2 0x7fff
+#define ld_QNAN1 0x7ff80000
+#define ld_QNAN2 0x0
 #define ld_QNAN3 0x0
 #define ldus_QNAN0 0x0
 #define ldus_QNAN1 0x0
 #define ldus_QNAN2 0x0
-#define ldus_QNAN3 0xc000
-#define ldus_QNAN4 0x7fff
+#define ldus_QNAN3 0x7ff8
+#define ldus_QNAN4 0x0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308130735.37D7Zwa9035394>