public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/102836] New: gcc.target/i386/pieces-memset-1.c etc. FAIL
@ 2021-10-19 11:56 ro at gcc dot gnu.org
  2021-10-19 11:56 ` [Bug target/102836] " ro at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-19 11:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102836

            Bug ID: 102836
           Summary: gcc.target/i386/pieces-memset-1.c etc. FAIL
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: i?86-pc-solaris2.11, x86_64-pc-solaris2.11

Some gcc.target/i386/pieces-memset-*.c tests have been FAILing on 32-bit
Solaris/x86
since they were installed:

FAIL: gcc.target/i386/pieces-memset-1.c scan-assembler-not %[re]bp
FAIL: gcc.target/i386/pieces-memset-4.c scan-assembler-not %[re]bp
FAIL: gcc.target/i386/pieces-memset-41.c scan-assembler-not %[re]bp
FAIL: gcc.target/i386/pieces-memset-7.c scan-assembler-not %[re]bp
FAIL: gcc.target/i386/pieces-memset-8.c scan-assembler-not %[re]bp

It turns out that this happens because 32-bit Solaris/x86 only guarantees
4-byte stack alignment following the i386 psABI, so defaults to -mstackrealign.

Adding -mno-stackrealign to one test lets the output match what I get on
Linux/x86.  I suspect that's the best option?

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

* [Bug target/102836] gcc.target/i386/pieces-memset-1.c etc. FAIL
  2021-10-19 11:56 [Bug target/102836] New: gcc.target/i386/pieces-memset-1.c etc. FAIL ro at gcc dot gnu.org
@ 2021-10-19 11:56 ` ro at gcc dot gnu.org
  2021-10-19 12:26 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-19 11:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102836

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

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

* [Bug target/102836] gcc.target/i386/pieces-memset-1.c etc. FAIL
  2021-10-19 11:56 [Bug target/102836] New: gcc.target/i386/pieces-memset-1.c etc. FAIL ro at gcc dot gnu.org
  2021-10-19 11:56 ` [Bug target/102836] " ro at gcc dot gnu.org
@ 2021-10-19 12:26 ` hjl.tools at gmail dot com
  2021-10-25 13:47 ` [Bug testsuite/102836] " ro at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2021-10-19 12:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102836

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Rainer Orth from comment #0)
> It turns out that this happens because 32-bit Solaris/x86 only guarantees
> 4-byte stack alignment following the i386 psABI, so defaults to
> -mstackrealign.
> 
> Adding -mno-stackrealign to one test lets the output match what I get on
> Linux/x86.  I suspect that's the best option?

Yes, I agree.

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

* [Bug testsuite/102836] gcc.target/i386/pieces-memset-1.c etc. FAIL
  2021-10-19 11:56 [Bug target/102836] New: gcc.target/i386/pieces-memset-1.c etc. FAIL ro at gcc dot gnu.org
  2021-10-19 11:56 ` [Bug target/102836] " ro at gcc dot gnu.org
  2021-10-19 12:26 ` hjl.tools at gmail dot com
@ 2021-10-25 13:47 ` ro at gcc dot gnu.org
  2021-10-26 12:21 ` cvs-commit at gcc dot gnu.org
  2021-10-26 12:21 ` ro at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-25 13:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102836

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-10-25
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2021-October
                   |                            |/582492.html
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
           Assignee|unassigned at gcc dot gnu.org      |ro at gcc dot gnu.org

--- Comment #2 from Rainer Orth <ro at gcc dot gnu.org> ---
Mine, patch posted.

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

* [Bug testsuite/102836] gcc.target/i386/pieces-memset-1.c etc. FAIL
  2021-10-19 11:56 [Bug target/102836] New: gcc.target/i386/pieces-memset-1.c etc. FAIL ro at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-10-25 13:47 ` [Bug testsuite/102836] " ro at gcc dot gnu.org
@ 2021-10-26 12:21 ` cvs-commit at gcc dot gnu.org
  2021-10-26 12:21 ` ro at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-26 12:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102836

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Rainer Orth <ro@gcc.gnu.org>:

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

commit r12-4711-gace06d730a8f41827d9d1a0067b596cc1ad37680
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Tue Oct 26 14:15:24 2021 +0200

    testsuite: i386: Fix gcc.target/i386/pieces-memset-1.c etc. on Solaris
[PR102836]

    Several of the gcc.target/i386/pieces-memset-*.c tests FAIL on 32-bit
    Solaris/x86:

    FAIL: gcc.target/i386/pieces-memset-1.c scan-assembler-not %[re]bp
    FAIL: gcc.target/i386/pieces-memset-4.c scan-assembler-not %[re]bp
    FAIL: gcc.target/i386/pieces-memset-41.c scan-assembler-not %[re]bp
    FAIL: gcc.target/i386/pieces-memset-7.c scan-assembler-not %[re]bp
    FAIL: gcc.target/i386/pieces-memset-8.c scan-assembler-not %[re]bp
    FAIL: gcc.target/i386/pr90773-1.c scan-assembler-times movq[\\\\t
    ]+7\\\\(%[^,]+\\\\), 1
    FAIL: gcc.target/i386/pr90773-1.c scan-assembler-times movq[\\\\t
    ]+\\\\(%[^,]+\\\\), 1

    Fixed by compiling with -mno-stackrealign.  Tested on
    i386-pc-solaris2.11 and x86_64-pc-linux-gnu.


    2021-10-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

            gcc/testsuite:
            PR testsuite/102836
            * gcc.target/i386/pieces-memset-1.c: Add -mno-stackrealign to
            dg-options.
            * gcc.target/i386/pieces-memset-4.c: Likewise.
            * gcc.target/i386/pieces-memset-7.c: Likewise.
            * gcc.target/i386/pieces-memset-8.c: Likewise.
            * gcc.target/i386/pieces-memset-41.c: Likewise.
            * gcc.target/i386/pr90773-1.c: Likewise.

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

* [Bug testsuite/102836] gcc.target/i386/pieces-memset-1.c etc. FAIL
  2021-10-19 11:56 [Bug target/102836] New: gcc.target/i386/pieces-memset-1.c etc. FAIL ro at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-10-26 12:21 ` cvs-commit at gcc dot gnu.org
@ 2021-10-26 12:21 ` ro at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-26 12:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102836

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Rainer Orth <ro at gcc dot gnu.org> ---
Fixed for GCC 12.

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

end of thread, other threads:[~2021-10-26 12:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 11:56 [Bug target/102836] New: gcc.target/i386/pieces-memset-1.c etc. FAIL ro at gcc dot gnu.org
2021-10-19 11:56 ` [Bug target/102836] " ro at gcc dot gnu.org
2021-10-19 12:26 ` hjl.tools at gmail dot com
2021-10-25 13:47 ` [Bug testsuite/102836] " ro at gcc dot gnu.org
2021-10-26 12:21 ` cvs-commit at gcc dot gnu.org
2021-10-26 12:21 ` ro at gcc dot gnu.org

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