public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
@ 2023-04-19  6:27 haochen.jiang at intel dot com
  2023-04-19  6:37 ` [Bug target/109549] " pinskia at gcc dot gnu.org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: haochen.jiang at intel dot com @ 2023-04-19  6:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109549
           Summary: [14 Regression] cmov6.c test fail after commit
                    r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: haochen.jiang at intel dot com
  Target Milestone: ---

After commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a with the fix of
removing @gol fix, we got a scan asm fail for gcc.target/i386/cmov6.c.

We can reproduce that by command:

make check-gcc RUNTESTFLAGS="i386.exp=cmov6.c --target_board='unix{-m32,}'"

The previous codegen is:

foo:
.LFB0:
        .cfi_startproc
        movl    4(%esp), %eax
        movl    $20, %edx
        testl   %eax, %eax
        movl    $10, %eax
        cmovne  8(%esp), %edx
        cmove   12(%esp), %eax
        movl    %edx, 8(%esp)
        movl    %eax, 4(%esp)
        jmp     bar
        .cfi_endproc

The current codegen is:

foo:
.LFB0:
        .cfi_startproc
        movl    4(%esp), %ecx
        movl    8(%esp), %edx
        movl    12(%esp), %eax
        testl   %ecx, %ecx
        je      .L3
        movl    $10, %eax
        movl    %edx, 8(%esp)
        movl    %eax, 4(%esp)
        jmp     bar
        .p2align 4,,7
        .p2align 3
.L3:
        movl    $20, %edx
        movl    %eax, 4(%esp)
        movl    %edx, 8(%esp)
        jmp     bar
        .cfi_endproc

BTW, I saw Andrew's patch fixing cmov:

https://gcc.gnu.org/pipermail/gcc-patches/2023-April/616088.html

Is that related?

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

* [Bug target/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
@ 2023-04-19  6:37 ` pinskia at gcc dot gnu.org
  2023-04-19  6:38 ` pinskia at gcc dot gnu.org
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-19  6:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> BTW, I saw Andrew's patch fixing cmov:

It is unrelated. This is a cost model issue of the x86 backend I think.

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

* [Bug target/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
  2023-04-19  6:37 ` [Bug target/109549] " pinskia at gcc dot gnu.org
@ 2023-04-19  6:38 ` pinskia at gcc dot gnu.org
  2023-04-19  7:59 ` rguenth at gcc dot gnu.org
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-19  6:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note for some x86 cores having 2 or more cmove back to back is worse than a
conditional jump so maybe the testcase is now catching what it should happen
...

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

* [Bug target/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
  2023-04-19  6:37 ` [Bug target/109549] " pinskia at gcc dot gnu.org
  2023-04-19  6:38 ` pinskia at gcc dot gnu.org
@ 2023-04-19  7:59 ` rguenth at gcc dot gnu.org
  2023-04-19  8:10 ` jakub at gcc dot gnu.org
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-19  7:59 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |testsuite-fail
             Target|                            |x86_64-*-*
   Target Milestone|---                         |14.0

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

* [Bug target/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (2 preceding siblings ...)
  2023-04-19  7:59 ` rguenth at gcc dot gnu.org
@ 2023-04-19  8:10 ` jakub at gcc dot gnu.org
  2023-04-19 13:06 ` law at gcc dot gnu.org
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-04-19  8:10 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I see both
+FAIL: gcc.target/i386/cmov6.c scan-assembler cmov[^6]
+FAIL: gcc.target/i386/pr45685.c scan-assembler-times cmov 6
on x86_64-linux, while only the former on i686-linux.

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

* [Bug target/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (3 preceding siblings ...)
  2023-04-19  8:10 ` jakub at gcc dot gnu.org
@ 2023-04-19 13:06 ` law at gcc dot gnu.org
  2023-04-19 13:37 ` law at gcc dot gnu.org
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: law at gcc dot gnu.org @ 2023-04-19 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jeffrey A. Law <law at gcc dot gnu.org> ---
x86's tuning does have some support for avoiding multiple cmovs in a single
if-converted sequence.  I'll double check if that's kicking in here.

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

* [Bug target/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (4 preceding siblings ...)
  2023-04-19 13:06 ` law at gcc dot gnu.org
@ 2023-04-19 13:37 ` law at gcc dot gnu.org
  2023-04-19 15:29 ` law at gcc dot gnu.org
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: law at gcc dot gnu.org @ 2023-04-19 13:37 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-04-19

--- Comment #5 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Yea, that's exactly what's kicking in here.  The converted sequence looks like
this:

(insn 29 0 28 (set (reg:SI 86)
        (const_int 10 [0xa])) 83 {*movsi_internal}
     (nil))

(insn 28 29 30 (set (reg:CCZ 17 flags)
        (compare:CCZ (reg/v:SI 83 [ c ])
            (const_int 0 [0]))) 7 {*cmpsi_ccno_1}
     (nil))

(insn 30 28 32 (set (reg/v:SI 85 [ e ])
        (if_then_else:SI (eq (reg:CCZ 17 flags)
                (const_int 0 [0]))
            (reg/v:SI 85 [ e ])
            (reg:SI 86))) 1318 {*movsicc_noc}
     (nil))

(insn 32 30 31 (set (reg:SI 87)
        (const_int 20 [0x14])) 83 {*movsi_internal}
     (nil))

(insn 31 32 33 (set (reg:CCZ 17 flags)
        (compare:CCZ (reg/v:SI 83 [ c ])
            (const_int 0 [0]))) 7 {*cmpsi_ccno_1}
     (nil))

(insn 33 31 0 (set (reg/v:SI 84 [ d ])
        (if_then_else:SI (ne (reg:CCZ 17 flags)
                (const_int 0 [0]))
            (reg/v:SI 84 [ d ])
            (reg:SI 87))) 1318 {*movsicc_noc}
     (nil))


Note the two movsicc_* patterns.

So the question now is what to do about it.  It looks like things are behaving
as expected, so my first inclination would be to adjust the test.  Actually
splitting it into two would likely be even better.  One would verify that by
default we do not generate a pair of cmovs for this code, the other would turn
the tuning bit off and verify that we do generate the pair of cmovs.

Happy to do whatever the x86 maintainers want here.

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

* [Bug target/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (5 preceding siblings ...)
  2023-04-19 13:37 ` law at gcc dot gnu.org
@ 2023-04-19 15:29 ` law at gcc dot gnu.org
  2023-04-20  9:50 ` ubizjak at gmail dot com
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: law at gcc dot gnu.org @ 2023-04-19 15:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jeffrey A. Law <law at gcc dot gnu.org> ---
And just an FYI, the tester is flagging conditional move failures for mips64-*
rx-elf and s390-linux-gnu.  Most likely these are additional cases where the
hook is indicating the transformation isn't profitable, but the target tests
are expecting the transformation to happen.

I'll debug those other targets and take appropriate action.  At this point I
don't see anything that would strongly suggest reversion of the patch, just
that we need a bit of testsuite adjustment.

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

* [Bug target/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (6 preceding siblings ...)
  2023-04-19 15:29 ` law at gcc dot gnu.org
@ 2023-04-20  9:50 ` ubizjak at gmail dot com
  2023-04-21 18:24 ` [Bug testsuite/109549] " cvs-commit at gcc dot gnu.org
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: ubizjak at gmail dot com @ 2023-04-20  9:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Andrew Pinski from comment #2)
> Note for some x86 cores having 2 or more cmove back to back is worse than a
> conditional jump so maybe the testcase is now catching what it should happen
> ...

Please see PR85559 meta bug and PR56309. Some heuristic should be developed
when to use CMOV insn. Some analysis is at:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54073#c16

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

* [Bug testsuite/109549] [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (7 preceding siblings ...)
  2023-04-20  9:50 ` ubizjak at gmail dot com
@ 2023-04-21 18:24 ` cvs-commit at gcc dot gnu.org
  2023-04-29 14:09 ` [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a law at gcc dot gnu.org
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-21 18:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <law@gcc.gnu.org>:

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

commit r14-156-gf1f18198b069f461155191ecba41bc87bf5689dd
Author: Jeff Law <jlaw@ventanamicro>
Date:   Fri Apr 21 12:22:24 2023 -0600

    Adjust x86 testsuite for recent if-conversion cost checking

    gcc/testsuite
            PR testsuite/109549
            * gcc.target/i386/cmov6.c: No longer expect this test to
            generate 'cmov' instructions.

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (8 preceding siblings ...)
  2023-04-21 18:24 ` [Bug testsuite/109549] " cvs-commit at gcc dot gnu.org
@ 2023-04-29 14:09 ` law at gcc dot gnu.org
  2024-01-12 10:25 ` rguenth at gcc dot gnu.org
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: law at gcc dot gnu.org @ 2023-04-29 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-*-*                  |s390
            Summary|[14 Regression] cmov6.c     |[14 Regression] Conditional
                   |test fail after commit      |move regressions after
                   |r14-53-g675b1a7f113adb1d737 |r14-53-g675b1a7f113adb1d737
                   |adaf78b4fd90be7a0ed1a       |adaf78b4fd90be7a0ed1a

--- Comment #9 from Jeffrey A. Law <law at gcc dot gnu.org> ---
WRT the s390 failures:

gcc.target/s390/arch13/sel-1.c scan-assembler-times \tselgr(?:h|le)\t 1
gcc.target/s390/arch13/sel-1.c scan-assembler-times \tselr(?:h|le)\t 1
gcc.target/s390/ifcvt-one-insn-bool.c scan-assembler lochinh\t%r.?,1
gcc.target/s390/ifcvt-one-insn-char.c scan-assembler locrnh\t%r.?,%r.?
gcc.target/s390/loc-1.c scan-assembler \tlochine\t%r2,-1
gcc.target/s390/loc-1.c scan-assembler \tlocrne\t%r2,%r4
gcc.target/s390/vector/vec-scalar-cmp-1.c scan-assembler
eq:\n[^:]*\twfcdb\t%v[0-9]*,%v[0-9]*\n\t[^:]+\tlochie\t%r2,1
gcc.target/s390/vector/vec-scalar-cmp-1.c scan-assembler
ge:\n[^:]*\twfkdb\t%v[0-9]*,%v[0-9]*\n\t[^:]+\tlochihe\t%r2,1
gcc.target/s390/vector/vec-scalar-cmp-1.c scan-assembler
gt:\n[^:]*\twfkdb\t%v[0-9]*,%v[0-9]*\n\t[^:]+\tlochih\t%r2,1
gcc.target/s390/vector/vec-scalar-cmp-1.c scan-assembler
le:\n[^:]*\twfkdb\t%v[0-9]*,%v[0-9]*\n\t[^:]+\tlochile\t%r2,1
gcc.target/s390/vector/vec-scalar-cmp-1.c scan-assembler
lt:\n[^:]*\twfkdb\t%v[0-9]*,%v[0-9]*\n\t[^:]+\tlochil\t%r2,1
gcc.target/s390/vector/vec-scalar-cmp-1.c scan-assembler
ne:\n[^:]*\twfcdb\t%v[0-9]*,%v[0-9]*\n\t[^:]+\tlochine\t%r2,1

These are also cases where the s390 cost model says these particular
if-conversion opportunities aren't profitable.   Basically the backend has no
costing model for (set (if_then_else ...))  so it recursively computes the cost
of all the sub-rtxs which ultimately turns out to be higher than the cost of
the branchy code.

I'm not qualified to address this problem as I have no sense of s390 costing. 
I'm going to have the tester regenerate new baselines for s390, but I'm not
going to actively try to fix this problem.  Also note my testing was s390, not
s390x which may be behaving differently.

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (9 preceding siblings ...)
  2023-04-29 14:09 ` [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a law at gcc dot gnu.org
@ 2024-01-12 10:25 ` rguenth at gcc dot gnu.org
  2024-01-12 10:26 ` rguenth at gcc dot gnu.org
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-12 10:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|s390                        |s390*-*-*
   Last reconfirmed|2023-04-19 00:00:00         |2024-1-12
                 CC|                            |krebbel at gcc dot gnu.org

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
https://gcc.gnu.org/pipermail/gcc-testresults/2024-January/805164.html shows
them also on s390x.

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (10 preceding siblings ...)
  2024-01-12 10:25 ` rguenth at gcc dot gnu.org
@ 2024-01-12 10:26 ` rguenth at gcc dot gnu.org
  2024-01-15 13:50 ` rguenth at gcc dot gnu.org
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-12 10:26 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (11 preceding siblings ...)
  2024-01-12 10:26 ` rguenth at gcc dot gnu.org
@ 2024-01-15 13:50 ` rguenth at gcc dot gnu.org
  2024-03-01 12:18 ` stefansf at linux dot ibm.com
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-15 13:50 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (12 preceding siblings ...)
  2024-01-15 13:50 ` rguenth at gcc dot gnu.org
@ 2024-03-01 12:18 ` stefansf at linux dot ibm.com
  2024-03-08 22:16 ` law at gcc dot gnu.org
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: stefansf at linux dot ibm.com @ 2024-03-01 12:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Stefan Schulze Frielinghaus <stefansf at linux dot ibm.com> ---
I will have a look at those s390x failures and come up with a
TARGET_NOCE_CONVERSION_PROFITABLE_P implementation.

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (13 preceding siblings ...)
  2024-03-01 12:18 ` stefansf at linux dot ibm.com
@ 2024-03-08 22:16 ` law at gcc dot gnu.org
  2024-03-23  9:33 ` sjames at gcc dot gnu.org
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-08 22:16 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|law at gcc dot gnu.org             |unassigned at gcc dot gnu.org
           Priority|P1                          |P2

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (14 preceding siblings ...)
  2024-03-08 22:16 ` law at gcc dot gnu.org
@ 2024-03-23  9:33 ` sjames at gcc dot gnu.org
  2024-03-25  7:07 ` stefansf at linux dot ibm.com
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-23  9:33 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW

--- Comment #12 from Sam James <sjames at gcc dot gnu.org> ---
Changing back to NEW, although stefansf may want to take it(?)

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (15 preceding siblings ...)
  2024-03-23  9:33 ` sjames at gcc dot gnu.org
@ 2024-03-25  7:07 ` stefansf at linux dot ibm.com
  2024-03-25  9:23 ` sjames at gcc dot gnu.org
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: stefansf at linux dot ibm.com @ 2024-03-25  7:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Stefan Schulze Frielinghaus <stefansf at linux dot ibm.com> ---
I will take it and I've already prepared a patch.  Currently, I'm still testing
the patch.  I hope I get enough compute resources in order to make it into GCC
14.

Anyhow, you can assign the issue to me (I think I don't have permissions to do
it myself).

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (16 preceding siblings ...)
  2024-03-25  7:07 ` stefansf at linux dot ibm.com
@ 2024-03-25  9:23 ` sjames at gcc dot gnu.org
  2024-03-25 11:02 ` stefansf at gcc dot gnu.org
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-25  9:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Sam James <sjames at gcc dot gnu.org> ---
Hi Stefan, you should be able to change your email on bugzilla to
<yoursourcewareusername>@gcc.gnu.org and gain permissions.

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

* [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (17 preceding siblings ...)
  2024-03-25  9:23 ` sjames at gcc dot gnu.org
@ 2024-03-25 11:02 ` stefansf at gcc dot gnu.org
  2024-05-07  7:40 ` [Bug testsuite/109549] [14/15 " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: stefansf at gcc dot gnu.org @ 2024-03-25 11:02 UTC (permalink / raw)
  To: gcc-bugs

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

Stefan Schulze Frielinghaus <stefansf at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |stefansf at gcc dot gnu.org

--- Comment #15 from Stefan Schulze Frielinghaus <stefansf at gcc dot gnu.org> ---
Hi Sam, thanks for the pointer. Taking it now.

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

* [Bug testsuite/109549] [14/15 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (18 preceding siblings ...)
  2024-03-25 11:02 ` stefansf at gcc dot gnu.org
@ 2024-05-07  7:40 ` rguenth at gcc dot gnu.org
  2024-05-08  7:48 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-05-07  7:40 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|14.0                        |14.2

--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 14.1 is being released, retargeting bugs to GCC 14.2.

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

* [Bug testsuite/109549] [14/15 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (19 preceding siblings ...)
  2024-05-07  7:40 ` [Bug testsuite/109549] [14/15 " rguenth at gcc dot gnu.org
@ 2024-05-08  7:48 ` cvs-commit at gcc dot gnu.org
  2024-05-08  7:51 ` lingling.kong7 at gmail dot com
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-05-08  7:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kong Lingling <konglin1@gcc.gnu.org>:

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

commit r15-313-gd826f7945609046f922732b138fb90795d5b1985
Author: konglin1 <lingling.kong@intel.com>
Date:   Wed May 8 15:46:10 2024 +0800

    x86: Fix cmov cost model issue [PR109549]

    (if_then_else:SI (eq (reg:CCZ 17 flags)
            (const_int 0 [0]))
        (reg/v:SI 101 [ e ])
        (reg:SI 102))
    The cost is 8 for the rtx, the cost for
    (eq (reg:CCZ 17 flags) (const_int 0 [0])) is 4,
    but this is just an operator do not need to compute it's cost in cmov.

    gcc/ChangeLog:

            PR target/109549
            * config/i386/i386.cc (ix86_rtx_costs): The XEXP (x, 0) for cmov
            is an operator do not need to compute cost.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/cmov6.c: Fixed.

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

* [Bug testsuite/109549] [14/15 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (20 preceding siblings ...)
  2024-05-08  7:48 ` cvs-commit at gcc dot gnu.org
@ 2024-05-08  7:51 ` lingling.kong7 at gmail dot com
  2024-05-23  6:44 ` cvs-commit at gcc dot gnu.org
  2024-05-24  1:44 ` sjames at gcc dot gnu.org
  23 siblings, 0 replies; 25+ messages in thread
From: lingling.kong7 at gmail dot com @ 2024-05-08  7:51 UTC (permalink / raw)
  To: gcc-bugs

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

kong lingling <lingling.kong7 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lingling.kong7 at gmail dot com

--- Comment #18 from kong lingling <lingling.kong7 at gmail dot com> ---
Fixed.

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

* [Bug testsuite/109549] [14/15 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (21 preceding siblings ...)
  2024-05-08  7:51 ` lingling.kong7 at gmail dot com
@ 2024-05-23  6:44 ` cvs-commit at gcc dot gnu.org
  2024-05-24  1:44 ` sjames at gcc dot gnu.org
  23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-05-23  6:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Stefan Schulze Frielinghaus
<stefansf@gcc.gnu.org>:

https://gcc.gnu.org/g:57e04879389f9c0d5d53f316b468ce1bddbab350

commit r15-787-g57e04879389f9c0d5d53f316b468ce1bddbab350
Author: Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Date:   Thu May 23 08:43:35 2024 +0200

    s390: Implement TARGET_NOCE_CONVERSION_PROFITABLE_P [PR109549]

    Consider a NOCE conversion as profitable if there is at least one
    conditional move.

    gcc/ChangeLog:

            PR target/109549
            * config/s390/s390.cc (TARGET_NOCE_CONVERSION_PROFITABLE_P):
            Define.
            (s390_noce_conversion_profitable_p): Implement.

    gcc/testsuite/ChangeLog:

            * gcc.target/s390/ccor.c: Order of loads are reversed, now, as a
            consequence the condition has to be reversed.

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

* [Bug testsuite/109549] [14/15 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a
  2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
                   ` (22 preceding siblings ...)
  2024-05-23  6:44 ` cvs-commit at gcc dot gnu.org
@ 2024-05-24  1:44 ` sjames at gcc dot gnu.org
  23 siblings, 0 replies; 25+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-05-24  1:44 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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

end of thread, other threads:[~2024-05-24  1:44 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-19  6:27 [Bug target/109549] New: [14 Regression] cmov6.c test fail after commit r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a haochen.jiang at intel dot com
2023-04-19  6:37 ` [Bug target/109549] " pinskia at gcc dot gnu.org
2023-04-19  6:38 ` pinskia at gcc dot gnu.org
2023-04-19  7:59 ` rguenth at gcc dot gnu.org
2023-04-19  8:10 ` jakub at gcc dot gnu.org
2023-04-19 13:06 ` law at gcc dot gnu.org
2023-04-19 13:37 ` law at gcc dot gnu.org
2023-04-19 15:29 ` law at gcc dot gnu.org
2023-04-20  9:50 ` ubizjak at gmail dot com
2023-04-21 18:24 ` [Bug testsuite/109549] " cvs-commit at gcc dot gnu.org
2023-04-29 14:09 ` [Bug testsuite/109549] [14 Regression] Conditional move regressions after r14-53-g675b1a7f113adb1d737adaf78b4fd90be7a0ed1a law at gcc dot gnu.org
2024-01-12 10:25 ` rguenth at gcc dot gnu.org
2024-01-12 10:26 ` rguenth at gcc dot gnu.org
2024-01-15 13:50 ` rguenth at gcc dot gnu.org
2024-03-01 12:18 ` stefansf at linux dot ibm.com
2024-03-08 22:16 ` law at gcc dot gnu.org
2024-03-23  9:33 ` sjames at gcc dot gnu.org
2024-03-25  7:07 ` stefansf at linux dot ibm.com
2024-03-25  9:23 ` sjames at gcc dot gnu.org
2024-03-25 11:02 ` stefansf at gcc dot gnu.org
2024-05-07  7:40 ` [Bug testsuite/109549] [14/15 " rguenth at gcc dot gnu.org
2024-05-08  7:48 ` cvs-commit at gcc dot gnu.org
2024-05-08  7:51 ` lingling.kong7 at gmail dot com
2024-05-23  6:44 ` cvs-commit at gcc dot gnu.org
2024-05-24  1:44 ` sjames 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).