From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1652) id DE5F93858C54; Tue, 22 Nov 2022 13:10:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE5F93858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669122606; bh=R+ZMErL2H1pdJaYPg3Dh49BKsBeqafqQBd3H7IK0ViA=; h=From:To:Subject:Date:From; b=ywoP4gwVidc0WN5j2rSgbUthD4BRKiB/37rEk772bJn+itzOgl78UTad97sjU8ekY js/Y8ZS/C8fWOkgT8In1QlQ5Nihy0KBXnn/5hjZETFsemYtiKxnNKcN9RPSvQ+mu1d xPzExl+8EoKHZJfT6kMbt28CVjn97XJUa5QG3qKg= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Christophe Lyon To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4235] aarch64: Fix test_dfp_17.c for big-endian [PR 107604] X-Act-Checkin: gcc X-Git-Author: Christophe Lyon X-Git-Refname: refs/heads/master X-Git-Oldrev: 61351ab96a4dfa0884c8b1a53342b97915fb5dd7 X-Git-Newrev: 4eb3a48698b2ca43967a4e7e7cfc0408192e85b2 Message-Id: <20221122131006.DE5F93858C54@sourceware.org> Date: Tue, 22 Nov 2022 13:10:06 +0000 (GMT) List-Id: https://gcc.gnu.org/g:4eb3a48698b2ca43967a4e7e7cfc0408192e85b2 commit r13-4235-g4eb3a48698b2ca43967a4e7e7cfc0408192e85b2 Author: Christophe Lyon 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