[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2024-02-20 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

Peter Bergner  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=114004
 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #9 from Peter Bergner  ---
Fixed.


(In reply to Peter Bergner from comment #5)
> We still want to remove the superfluous instruction, but that should be
> covered in a separate bug.

The fixing of the superfluous insn is being tracked in PR114004.

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2024-02-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

--- Comment #8 from GCC Commits  ---
The master branch has been updated by Peter Bergner :

https://gcc.gnu.org/g:81e5f276c59897077ffe38202849c93e9c580c41

commit r14-9085-g81e5f276c59897077ffe38202849c93e9c580c41
Author: Peter Bergner 
Date:   Tue Feb 20 13:44:43 2024 -0600

rs6000: Update instruction counts due to combine changes [PR112103]

The PR91865 combine fix changed instruction counts slightly for rlwinm-0.c.
Adjust expected instruction counts accordingly.

2024-02-20  Peter Bergner  

gcc/testsuite/
PR target/112103
* gcc.target/powerpc/rlwinm-0.c: Adjust expected instruction
counts.

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2024-02-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

Peter Bergner  changed:

   What|Removed |Added

URL||https://gcc.gnu.org/piperma
   ||il/gcc-patches/2024-Februar
   ||y/646008.html

--- Comment #7 from Peter Bergner  ---
Testing was clean, so submitted.

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2024-02-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

Peter Bergner  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |bergner at gcc dot 
gnu.org
 Status|NEW |ASSIGNED

--- Comment #6 from Peter Bergner  ---
Testing the obvious patch on both LE and BE to ensure it works everywhere.

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2024-02-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

--- Comment #5 from Peter Bergner  ---
(In reply to Jakub Jelinek from comment #4)
> So, let's just adjust the testcase then?

We still want to remove the superfluous instruction, but that should be covered
in a separate bug.  So yeah, I think this just needs a testsuite update.

Should we also drop the priority down too?  A P1 seems a little high for a
simple test case update.

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2024-02-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek  ---
So, let's just adjust the testcase then?

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2024-01-19 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

--- Comment #3 from Peter Bergner  ---
(In reply to Segher Boessenkool from comment #2)
> In all those cases the code is perfectly fine, but also in all of those
> cases the
> code is still suboptimal: the rldicl is just as superfluous as the second
> rlwinm
> was!  :-)

So the superfluous second instruction is not really a regression, correct?  All
that changed with Roger's patch is we replaced a superfluous rlwinm with a
superfluous rldicl, correct?

...which is what caused the testcase to FAIL given it was looking for the old
mnemonic and found the new one.

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2024-01-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P1

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2023-11-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

--- Comment #2 from Segher Boessenkool  ---
In all those cases the code is perfectly fine, but also in all of those cases
the
code is still suboptimal: the rldicl is just as superfluous as the second
rlwinm
was!  :-)

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2023-11-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

--- Comment #1 from Segher Boessenkool  ---
Those are:

$ diff -up rlwinm-0.s{.12,}
--- rlwinm-0.s.12   2023-11-09 18:28:49.362639203 +
+++ rlwinm-0.s  2023-11-09 18:30:46.422896735 +
@@ -6747,7 +6747,7 @@ f_1_16_31:
 .LFB345:
.cfi_startproc
rlwinm 3,3,1,16,31
-   rlwinm 3,3,0,0x
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -7645,7 +7645,7 @@ f_1_24_31:
 .LFB390:
.cfi_startproc
rlwinm 3,3,1,24,31
-   rlwinm 3,3,0,0xff
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -11235,7 +11235,7 @@ f_2_16_31:
 .LFB570:
.cfi_startproc
rlwinm 3,3,2,16,31
-   rlwinm 3,3,0,0x
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -12133,7 +12133,7 @@ f_2_24_31:
 .LFB615:
.cfi_startproc
rlwinm 3,3,2,24,31
-   rlwinm 3,3,0,0xff
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -15722,7 +15722,7 @@ f_7_16_31:
 .LFB795:
.cfi_startproc
rlwinm 3,3,7,16,31
-   rlwinm 3,3,0,0x
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -16620,7 +16620,7 @@ f_7_24_31:
 .LFB840:
.cfi_startproc
rlwinm 3,3,7,24,31
-   rlwinm 3,3,0,0xff
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -20207,7 +20207,7 @@ f_8_16_31:
 .LFB1020:
.cfi_startproc
rlwinm 3,3,8,16,31
-   rlwinm 3,3,0,0x
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -24691,7 +24691,7 @@ f_9_16_31:
 .LFB1245:
.cfi_startproc
rlwinm 3,3,9,16,31
-   rlwinm 3,3,0,0x
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -29174,7 +29174,7 @@ f_15_16_31:
 .LFB1470:
.cfi_startproc
rlwinm 3,3,15,16,31
-   rlwinm 3,3,0,0x
+   rldicl 3,3,0,32
blr
.long 0
.byte 0,0,0,0,0,0,0,0
@@ -67092,4 +67092,4 @@ f_31_31_31:
.cfi_endproc
 .LFE3375:
.size   f_31_31_31,.-.L.f_31_31_31
-   .ident  "GCC: (GNU) 12.0.1 20220406 (experimental)"
+   .ident  "GCC: (GNU) 14.0.0 20231103 (experimental)"

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2023-10-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |14.0

[Bug target/112103] [14 regression] gcc.target/powerpc/rlwinm-0.c fails after r14-4941-gd1bb9569d70304

2023-10-26 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112103

Roger Sayle  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW
 CC||roger at nextmovesoftware dot 
com
   Last reconfirmed||2023-10-26