public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/pheeck/heads/sccp)] aarch64: Fix test_dfp_17.c for big-endian [PR 107604]
@ 2023-02-15 10:19 Filip Kastl
  0 siblings, 0 replies; only message in thread
From: Filip Kastl @ 2023-02-15 10:19 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b524fdda923a2ad14d553d5289db79d8a42eef21

commit b524fdda923a2ad14d553d5289db79d8a42eef21
Author: Christophe Lyon <christophe.lyon@arm.com>
Date:   Tue Nov 22 08:33:06 2022 +0000

    aarch64: Fix test_dfp_17.c for big-endian [PR 107604]
    
    gcc.target/aarch64/aapcs64/test_dfp_17.c has been failing on
    big-endian, because the _Decimal32 on-stack argument is not padded in
    the same direction depending on endianness.
    
    This patch fixes the testcase so that it expects the argument in the
    right stack location, similarly to what other tests do in the same
    directory.
    
    gcc/testsuite/ChangeLog:
    
            PR target/107604
            * gcc.target/aarch64/aapcs64/test_dfp_17.c: Fix for big-endian.

Diff:
---
 gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c
index 22dc462bf7c..3c45f715cf7 100644
--- a/gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c
+++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/test_dfp_17.c
@@ -32,6 +32,10 @@ struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd };
   ANON(struct z, a, D1)
   ANON(struct z, b, STACK)
   ANON(int , 5, W0)
+#ifndef __AAPCS64_BIG_ENDIAN__
   ANON(_Decimal32, f1, STACK+32) /* Note: no promotion to _Decimal64.  */
+#else
+  ANON(_Decimal32, f1, STACK+36) /* Note: no promotion to _Decimal64.  */
+#endif
   LAST_ANON(_Decimal64, 0.5dd, STACK+40)
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-15 10:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-15 10:19 [gcc(refs/users/pheeck/heads/sccp)] aarch64: Fix test_dfp_17.c for big-endian [PR 107604] Filip Kastl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).