public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] ld: xfail riscv64be-*-* for ld-scripts/empty-address-2 tests.
@ 2021-01-06 10:36 Nelson Chu
  2021-01-07  0:06 ` Alan Modra
  0 siblings, 1 reply; 5+ messages in thread
From: Nelson Chu @ 2021-01-06 10:36 UTC (permalink / raw)
  To: binutils, jimw, marcus

From: Marcus Comstedt <marcus@mc.pp.se>

Same as the the riscv64-*-* (little endian), we need to xfail
riscv64be-*-* (big endian), too.

ld/
    * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64-*-*.
    * testsuite/ld-scripts/empty-address-2b.d: Likewise.
---
 ld/testsuite/ld-scripts/empty-address-2a.d | 2 +-
 ld/testsuite/ld-scripts/empty-address-2b.d | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d
index 3b5a2d6..2619c48 100644
--- a/ld/testsuite/ld-scripts/empty-address-2a.d
+++ b/ld/testsuite/ld-scripts/empty-address-2a.d
@@ -1,7 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2a.t
 #nm: -n
-#xfail: frv-*-*linux* riscv64-*-* tic54x-*-*
+#xfail: frv-*-*linux* riscv64-*-* riscv64be-*-* tic54x-*-*
 #...
 0+0 T _start
 #...
diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d
index 3b530c9..ebe8461 100644
--- a/ld/testsuite/ld-scripts/empty-address-2b.d
+++ b/ld/testsuite/ld-scripts/empty-address-2b.d
@@ -1,7 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2b.t
 #nm: -n
-#xfail: frv-*-*linux* riscv64-*-* tic54x-*-*
+#xfail: frv-*-*linux* riscv64-*-* riscv64be-*-* tic54x-*-*
 #...
 0+0 T _start
 #...
-- 
2.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ld: xfail riscv64be-*-* for ld-scripts/empty-address-2 tests.
  2021-01-06 10:36 [PATCH] ld: xfail riscv64be-*-* for ld-scripts/empty-address-2 tests Nelson Chu
@ 2021-01-07  0:06 ` Alan Modra
  2021-01-07  7:19   ` Nelson Chu
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Modra @ 2021-01-07  0:06 UTC (permalink / raw)
  To: Nelson Chu; +Cc: binutils, jimw, marcus

On Wed, Jan 06, 2021 at 02:36:54AM -0800, Nelson Chu wrote:
> -#xfail: frv-*-*linux* riscv64-*-* tic54x-*-*
> +#xfail: frv-*-*linux* riscv64-*-* riscv64be-*-* tic54x-*-*

Not that it matters very much, but you could write riscv64*-*-*
instead of the two riscv entries.

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ld: xfail riscv64be-*-* for ld-scripts/empty-address-2 tests.
  2021-01-07  0:06 ` Alan Modra
@ 2021-01-07  7:19   ` Nelson Chu
  2021-01-07 11:58     ` Alan Modra
  0 siblings, 1 reply; 5+ messages in thread
From: Nelson Chu @ 2021-01-07  7:19 UTC (permalink / raw)
  To: Alan Modra; +Cc: Binutils, Jim Wilson, Marcus Comstedt

Hi Alan,

On Thu, Jan 7, 2021 at 8:06 AM Alan Modra <amodra@gmail.com> wrote:
>
> On Wed, Jan 06, 2021 at 02:36:54AM -0800, Nelson Chu wrote:
> > -#xfail: frv-*-*linux* riscv64-*-* tic54x-*-*
> > +#xfail: frv-*-*linux* riscv64-*-* riscv64be-*-* tic54x-*-*
>
> Not that it matters very much, but you could write riscv64*-*-*
> instead of the two riscv entries.

Thanks, these look better, I have updated them and committed.


Besides, riscv[32|64]be also get the following xpass,

XPASS: ld-elf/compressed1d

I think the RISC-V big-endian support won't break the compress rules,
just break the compressed1d test by accident.  Since the sizes of
compressed and uncompressed .debug_aranges are the same for the
riscv[32|64]be, but different for the little endian targets...  Jim
already had written an alternative test compressed1d-alt.  Therefore,
should we need to only xfail the riscv "little endian" targets for
ld-elf/compressed1d, but allow the big endian passes?

Thanks
Nelson

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ld: xfail riscv64be-*-* for ld-scripts/empty-address-2 tests.
  2021-01-07  7:19   ` Nelson Chu
@ 2021-01-07 11:58     ` Alan Modra
  2021-01-08 12:06       ` Nelson Chu
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Modra @ 2021-01-07 11:58 UTC (permalink / raw)
  To: Nelson Chu; +Cc: Binutils, Jim Wilson, Marcus Comstedt

On Thu, Jan 07, 2021 at 03:19:20PM +0800, Nelson Chu wrote:
> XPASS: ld-elf/compressed1d
> 
> I think the RISC-V big-endian support won't break the compress rules,
> just break the compressed1d test by accident.  Since the sizes of
> compressed and uncompressed .debug_aranges are the same for the
> riscv[32|64]be, but different for the little endian targets...  Jim
> already had written an alternative test compressed1d-alt.  Therefore,
> should we need to only xfail the riscv "little endian" targets for
> ld-elf/compressed1d, but allow the big endian passes?

Yes, that sounds like the right thing to do.

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ld: xfail riscv64be-*-* for ld-scripts/empty-address-2 tests.
  2021-01-07 11:58     ` Alan Modra
@ 2021-01-08 12:06       ` Nelson Chu
  0 siblings, 0 replies; 5+ messages in thread
From: Nelson Chu @ 2021-01-08 12:06 UTC (permalink / raw)
  To: Alan Modra; +Cc: Binutils, Jim Wilson, Marcus Comstedt

On Thu, Jan 7, 2021 at 7:58 PM Alan Modra <amodra@gmail.com> wrote:
>
> On Thu, Jan 07, 2021 at 03:19:20PM +0800, Nelson Chu wrote:
> > XPASS: ld-elf/compressed1d
> >
> > I think the RISC-V big-endian support won't break the compress rules,
> > just break the compressed1d test by accident.  Since the sizes of
> > compressed and uncompressed .debug_aranges are the same for the
> > riscv[32|64]be, but different for the little endian targets...  Jim
> > already had written an alternative test compressed1d-alt.  Therefore,
> > should we need to only xfail the riscv "little endian" targets for
> > ld-elf/compressed1d, but allow the big endian passes?
>
> Yes, that sounds like the right thing to do.

Thanks!  I have sent the patch that tries to only xfail the riscv
little endian targets, but allow other targets to pass, including
riscv big endian targets.

Thanks
Nelson

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-08 12:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 10:36 [PATCH] ld: xfail riscv64be-*-* for ld-scripts/empty-address-2 tests Nelson Chu
2021-01-07  0:06 ` Alan Modra
2021-01-07  7:19   ` Nelson Chu
2021-01-07 11:58     ` Alan Modra
2021-01-08 12:06       ` Nelson Chu

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).