public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112287] New: gcc.target/i386/pr111698.c fails on x86_64-darwin
@ 2023-10-30 10:39 fxcoudert at gcc dot gnu.org
  2023-10-30 10:40 ` [Bug target/112287] " fxcoudert at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2023-10-30 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112287
           Summary: gcc.target/i386/pr111698.c fails on x86_64-darwin
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fxcoudert at gcc dot gnu.org
  Target Milestone: ---

The fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111698 introduced
testsuite failures on x86_64-apple-darwin21:

PASS: gcc.target/i386/pr111698.c (test for excess errors)
FAIL: gcc.target/i386/pr111698.c scan-assembler-not testl
gcc.target/i386/pr111698.c: testb found 0 times
FAIL: gcc.target/i386/pr111698.c scan-assembler-times testb 1
gcc.target/i386/pr111698.c: testw found 0 times
FAIL: gcc.target/i386/pr111698.c scan-assembler-times testw 1

The assembly produced is the following:

        .build_version macos,  12, 0
        .text
        .p2align 4
        .globl _foo
_foo:
LFB0:
        testl   $655360, _m(%rip)
        setne   %al
        ret
LFE0:
        .p2align 4
        .globl _bar
_bar:
LFB1:
        testl   $10526720, _m(%rip)
        setne   %al
        ret
LFE1:
        .globl _m
        .zerofill __DATA,__common,_m,4,2
        .section
__TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support
EH_frame1:
        .set L$set$0,LECIE1-LSCIE1
        .long L$set$0
LSCIE1:
        .long   0
        .byte   0x3
        .ascii "zR\0"
        .uleb128 0x1
        .sleb128 -8
        .uleb128 0x10
        .uleb128 0x1
        .byte   0x10
        .byte   0xc
        .uleb128 0x7
        .uleb128 0x8
        .byte   0x90
        .uleb128 0x1
        .align 3
LECIE1:
LSFDE1:
        .set L$set$1,LEFDE1-LASFDE1
        .long L$set$1
LASFDE1:
        .long   LASFDE1-EH_frame1
        .quad   LFB0-.
        .set L$set$2,LFE0-LFB0
        .quad L$set$2
        .uleb128 0
        .align 3
LEFDE1:
LSFDE3:
        .set L$set$3,LEFDE3-LASFDE3
        .long L$set$3
LASFDE3:
        .long   LASFDE3-EH_frame1
        .quad   LFB1-.
        .set L$set$4,LFE1-LFB1
        .quad L$set$4
        .uleb128 0
        .align 3
LEFDE3:
        .subsections_via_symbols

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

* [Bug target/112287] gcc.target/i386/pr111698.c fails on x86_64-darwin
  2023-10-30 10:39 [Bug target/112287] New: gcc.target/i386/pr111698.c fails on x86_64-darwin fxcoudert at gcc dot gnu.org
@ 2023-10-30 10:40 ` fxcoudert at gcc dot gnu.org
  2023-10-30 10:53 ` pinskia at gcc dot gnu.org
  2023-10-30 11:53 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2023-10-30 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-10-30
             Target|                            |x86_64-apple-darwin21
             Status|UNCONFIRMED                 |NEW
                 CC|                            |ubizjak at gmail dot com
               Host|                            |x86_64-apple-darwin21
              Build|                            |x86_64-apple-darwin21

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

* [Bug target/112287] gcc.target/i386/pr111698.c fails on x86_64-darwin
  2023-10-30 10:39 [Bug target/112287] New: gcc.target/i386/pr111698.c fails on x86_64-darwin fxcoudert at gcc dot gnu.org
  2023-10-30 10:40 ` [Bug target/112287] " fxcoudert at gcc dot gnu.org
@ 2023-10-30 10:53 ` pinskia at gcc dot gnu.org
  2023-10-30 11:53 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-30 10:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
My bet is that the testcase just needs a -march option since iirc Darwin
defaults to core2.

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

* [Bug target/112287] gcc.target/i386/pr111698.c fails on x86_64-darwin
  2023-10-30 10:39 [Bug target/112287] New: gcc.target/i386/pr111698.c fails on x86_64-darwin fxcoudert at gcc dot gnu.org
  2023-10-30 10:40 ` [Bug target/112287] " fxcoudert at gcc dot gnu.org
  2023-10-30 10:53 ` pinskia at gcc dot gnu.org
@ 2023-10-30 11:53 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2023-10-30 11:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> My bet is that the testcase just needs a -march option since iirc Darwin
> defaults to core2.

Thanks, it works. Patch posted to the list.

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

end of thread, other threads:[~2023-10-30 11:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-30 10:39 [Bug target/112287] New: gcc.target/i386/pr111698.c fails on x86_64-darwin fxcoudert at gcc dot gnu.org
2023-10-30 10:40 ` [Bug target/112287] " fxcoudert at gcc dot gnu.org
2023-10-30 10:53 ` pinskia at gcc dot gnu.org
2023-10-30 11:53 ` fxcoudert 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).