Modula-2, testsuite: No 96 bit floating type on Darwin.

Message ID 20221231140347.10890-1-iain@sandoe.co.uk
State Committed
Commit 181afe5ca60930593e7556ea7f2a71c80f5f4dbf
Headers
Series Modula-2, testsuite: No 96 bit floating type on Darwin. |

Commit Message

Iain Sandoe Dec. 31, 2022, 2:03 p.m. UTC
  Tested on x86_64  and aarch64 Darwin,
OK for master?
thanks
Iain

--- 8< ---

The realbitscast.mod is currently failing on x86_64 and aarch64
Darwin since they do not have a 96b floating type.  Disable the
type for all Darwin arches.

gcc/testsuite/ChangeLog:

	* gm2/iso/pass/realbitscast.mod: Disable REAL96 on Darwin.
---
 gcc/testsuite/gm2/iso/pass/realbitscast.mod | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
  

Comments

Gaius Mulley Jan. 4, 2023, 11:58 a.m. UTC | #1
Iain Sandoe <iains.gcc@gmail.com> writes:

> Tested on x86_64  and aarch64 Darwin,
> OK for master?
> thanks
> Iain
>
> --- 8< ---
>
> The realbitscast.mod is currently failing on x86_64 and aarch64
> Darwin since they do not have a 96b floating type.  Disable the
> type for all Darwin arches.
>
> gcc/testsuite/ChangeLog:
>
> 	* gm2/iso/pass/realbitscast.mod: Disable REAL96 on Darwin.
> ---
>  gcc/testsuite/gm2/iso/pass/realbitscast.mod | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/gcc/testsuite/gm2/iso/pass/realbitscast.mod b/gcc/testsuite/gm2/iso/pass/realbitscast.mod
> index 4da57777cee..c6b70eb032c 100644
> --- a/gcc/testsuite/gm2/iso/pass/realbitscast.mod
> +++ b/gcc/testsuite/gm2/iso/pass/realbitscast.mod
> @@ -28,11 +28,10 @@ FROM SYSTEM IMPORT CAST, WORD ;
>  #elif defined(__ppc__)
>  #   undef HAVE_REAL96
>  #elif defined(__ia64)
> -#   undef HAVE_REAL69
> -#elif defined(__APPLE__) && defined(__i386__)
>  #   undef HAVE_REAL96
>  #elif defined(__APPLE__)
> -#   define HAVE_REAL96
> +(* No 96 bit floating type on Apple platforms *)
> +#   undef HAVE_REAL96
>  #endif

Hi Iain,

sure yes LGTM,

regards,
Gaius
  

Patch

diff --git a/gcc/testsuite/gm2/iso/pass/realbitscast.mod b/gcc/testsuite/gm2/iso/pass/realbitscast.mod
index 4da57777cee..c6b70eb032c 100644
--- a/gcc/testsuite/gm2/iso/pass/realbitscast.mod
+++ b/gcc/testsuite/gm2/iso/pass/realbitscast.mod
@@ -28,11 +28,10 @@  FROM SYSTEM IMPORT CAST, WORD ;
 #elif defined(__ppc__)
 #   undef HAVE_REAL96
 #elif defined(__ia64)
-#   undef HAVE_REAL69
-#elif defined(__APPLE__) && defined(__i386__)
 #   undef HAVE_REAL96
 #elif defined(__APPLE__)
-#   define HAVE_REAL96
+(* No 96 bit floating type on Apple platforms *)
+#   undef HAVE_REAL96
 #endif