[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization / subs followed by cmp (et alii)

2023-09-25 Thread cptarse-luke at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500

Luke  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #8 from Luke  ---


*** This bug has been marked as a duplicate of bug 104773 ***

[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization / subs followed by cmp (et alii)

2023-09-25 Thread cptarse-luke at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500

--- Comment #7 from Luke  ---
(In reply to Andrew Pinski from comment #6)
> (In reply to Andrew Pinski from comment #5)
> > This is most likely a dup of bug 104773.
> 
> Or of bug 3507.

i concur...
but i do not know which one to choose...
they both look the same to me... somehow...

[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization / subs followed by cmp (et alii)

2023-09-25 Thread cptarse-luke at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500
Bug 111500 depends on bug 111581, which changed state.

Bug 111581 Summary: [arm-none-eabi-gcc] / suboptimal optimization / uxth/sxth
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111581

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |DUPLICATE

[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization / subs followed by cmp (et alii)

2023-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500

--- Comment #6 from Andrew Pinski  ---
(In reply to Andrew Pinski from comment #5)
> This is most likely a dup of bug 104773.

Or of bug 3507.

[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization / subs followed by cmp (et alii)

2023-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500

--- Comment #5 from Andrew Pinski  ---
(In reply to Luke from comment #4)
> the a.i file for example #1a is:
> # 1 "a.c"
> # 1 "/tmp//"
> # 1 ""
> # 1 ""
> # 1 "a.c"
> void artiSUBS() {
>  for (int i=100; i>0; i--)
>   *(volatile int*)0xE000E014 = i;
> }
> 
> the command-line was:
> > arm-none-eabi-gcc -save-temps -S a.c -O3 -g -mcpu=cortex-m0plus -mthumb 
> > -Wall --specs=nosys.specs -nostdlib -fdata-sections -ffunction-sections 
> > -ffreestanding -Winline
> 
> and the resulting a.s file contains that subs/cmp sequence...

This is most likely a dup of bug 104773.

[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization / subs followed by cmp (et alii)

2023-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500
Bug 111500 depends on bug 111582, which changed state.

Bug 111582 Summary: [arm-none-eabi-gcc] / suboptimal optimization / bitfield / 
superfluous stack write
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111582

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization / subs followed by cmp (et alii)

2023-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500
Bug 111500 depends on bug 111580, which changed state.

Bug 111580 Summary: [arm-none-eabi-gcc] / suboptimal optimization / b.n to bx lr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111580

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE