From: Richard Henderson <richard.henderson@linaro.org>
To: Christophe Lyon <christophe.lyon@linaro.org>
Cc: gcc Patches <gcc-patches@gcc.gnu.org>,
Richard Earnshaw <richard.earnshaw@arm.com>,
Kyrylo Tkachov <kyrylo.tkachov@arm.com>,
Richard Sandiford <richard.sandiford@arm.com>
Subject: Re: [PATCH v2 6/6] aarch64: Add testsuite checks for asm-flag
Date: Tue, 19 Nov 2019 09:26:00 -0000 [thread overview]
Message-ID: <8849ee8e-3d4f-5077-054c-99a648c43f8f@linaro.org> (raw)
In-Reply-To: <CAKdteOaRO-kwyw2DbM_1Q8hr13ze98e+Vf85XyH9NQ5AJQvyBg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 840 bytes --]
On 11/19/19 9:29 AM, Christophe Lyon wrote:
> On Mon, 18 Nov 2019 at 20:54, Richard Henderson
> <richard.henderson@linaro.org> wrote:
>>
>> On 11/18/19 1:30 PM, Christophe Lyon wrote:
>>> I'm sorry to notice that the last test (asm-flag-6.c) fails to execute
>>> when compiling with -mabi=ilp32. I have less details than for Arm,
>>> because here I'm using the Foundation Model as simulator instead of
>>> Qemu. In addition, I'm using an old version of it, so maybe it's a
>>> simulator bug. Does it work on your side?
>>
>> I don't know how to test ilp32 with qemu. Is there a distribution that uses
>> this mode, and one tests in system mode? We don't have user-only support for
>> ilp32.
>>
>
> Sorry I wasn't clear: I test aarch64-elf with -mabi=ilp32, using newlib.
In the short term, can you please try this testsuite patch?
r~
[-- Attachment #2: z --]
[-- Type: text/plain, Size: 944 bytes --]
diff --git a/gcc/testsuite/gcc.target/aarch64/asm-flag-6.c b/gcc/testsuite/gcc.target/aarch64/asm-flag-6.c
index 963b5a48c70..54d7fbf317d 100644
--- a/gcc/testsuite/gcc.target/aarch64/asm-flag-6.c
+++ b/gcc/testsuite/gcc.target/aarch64/asm-flag-6.c
@@ -1,6 +1,12 @@
/* Executable testcase for 'output flags.' */
/* { dg-do run } */
+#ifdef __LP64__
+#define W ""
+#else
+#define W "w"
+#endif
+
int test_bits (long nzcv)
{
long n, z, c, v;
@@ -16,7 +22,7 @@ int test_cmps (long x, long y)
{
long gt, lt, ge, le;
- __asm__ ("cmp %[x], %[y]"
+ __asm__ ("cmp %"W"[x], %"W"[y]"
: "=@ccgt"(gt), "=@cclt"(lt), "=@ccge"(ge), "=@ccle"(le)
: [x] "r"(x), [y] "r"(y));
@@ -30,7 +36,7 @@ int test_cmpu (unsigned long x, unsigned long y)
{
long gt, lt, ge, le;
- __asm__ ("cmp %[x], %[y]"
+ __asm__ ("cmp %"W"[x], %"W"[y]"
: "=@cchi"(gt), "=@cclo"(lt), "=@cchs"(ge), "=@ccls"(le)
: [x] "r"(x), [y] "r"(y));
next prev parent reply other threads:[~2019-11-19 9:23 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 10:07 [PATCH v2 0/6] Implement asm flag outputs for arm + aarch64 Richard Henderson
2019-11-14 10:07 ` [PATCH v2 3/6] arm: Rename CC_NOOVmode to CC_NZmode Richard Henderson
2019-11-14 14:42 ` Richard Earnshaw (lists)
2019-11-14 10:07 ` [PATCH v2 1/6] aarch64: Add "c" constraint Richard Henderson
2019-11-14 10:07 ` [PATCH v2 4/6] arm, aarch64: Add support for __GCC_ASM_FLAG_OUTPUTS__ Richard Henderson
2019-11-14 14:40 ` Richard Earnshaw (lists)
2019-11-14 15:09 ` Richard Henderson
2019-11-14 15:22 ` Richard Earnshaw (lists)
2019-11-14 14:53 ` Richard Earnshaw (lists)
2019-11-14 15:14 ` Richard Henderson
2019-11-14 10:07 ` [PATCH v2 5/6] arm: Add testsuite checks for asm-flag Richard Henderson
2019-11-14 14:48 ` Richard Earnshaw (lists)
2019-11-18 12:28 ` Christophe Lyon
2019-11-18 13:32 ` Richard Henderson
2019-11-14 10:07 ` [PATCH v2 2/6] arm: Fix the "c" constraint Richard Henderson
2019-11-14 13:08 ` Kyrill Tkachov
2019-11-14 13:36 ` Richard Henderson
2019-11-14 10:12 ` [PATCH v2 6/6] aarch64: Add testsuite checks for asm-flag Richard Henderson
2019-11-18 12:35 ` Christophe Lyon
2019-11-18 20:06 ` Richard Henderson
2019-11-18 21:35 ` Andreas Schwab
2019-11-19 8:38 ` Christophe Lyon
2019-11-19 9:26 ` Richard Henderson [this message]
2019-11-19 10:12 ` Christophe Lyon
2019-11-14 13:13 ` [PATCH v2 0/6] Implement asm flag outputs for arm + aarch64 Kyrill Tkachov
2019-11-14 13:57 ` Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8849ee8e-3d4f-5077-054c-99a648c43f8f@linaro.org \
--to=richard.henderson@linaro.org \
--cc=christophe.lyon@linaro.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=kyrylo.tkachov@arm.com \
--cc=richard.earnshaw@arm.com \
--cc=richard.sandiford@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).