[Bug target/48803] arm: Bad assembler produced by bit extract/shift

2015-06-24 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48803

Ramana Radhakrishnan ramana at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #5 from Ramana Radhakrishnan ramana at gcc dot gnu.org ---
Duplicate then of PR49799... About time we closed this.

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


[Bug target/48803] arm: Bad assembler produced by bit extract/shift

2012-07-30 Thread ramana at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48803

Ramana Radhakrishnan ramana at gcc dot gnu.org changed:

   What|Removed |Added

  Known to work||4.6.2, 4.7.0
  Known to fail||4.5.2

--- Comment #4 from Ramana Radhakrishnan ramana at gcc dot gnu.org 2012-07-31 
00:57:03 UTC ---
This is a 4.5 only bug and should probably be closed as 4.5 is now kind of
dead. 

Ramana


[Bug target/48803] arm: Bad assembler produced by bit extract/shift

2011-09-22 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48803

Mikael Pettersson mikpe at it dot uu.se changed:

   What|Removed |Added

 CC||mikpe at it dot uu.se

--- Comment #3 from Mikael Pettersson mikpe at it dot uu.se 2011-09-22 
19:29:38 UTC ---
This test case stopped failing, sort of, for 4.6 by r162943, the introduction
of tree-bit-ccp optimization.  However that revision merely masked the problem
by default, as compiling with 4.6.[01] and -fno-tree-bit-ccp makes it reappear.
 The bug was finally fixed for 4.7 by r176911, the fix for the similar PR49799.
 That fix was also applied for 4.6.2 in r176917.

Backporting r176917 to 4.5 and 4.4 fixes both PRs there too.


[Bug target/48803] arm: Bad assembler produced by bit extract/shift

2011-07-10 Thread michael.hope at linaro dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48803

Michael Hope michael.hope at linaro dot org changed:

   What|Removed |Added

 CC||michael.hope at linaro dot
   ||org

--- Comment #2 from Michael Hope michael.hope at linaro dot org 2011-07-11 
00:19:52 UTC ---
Part of the difference is that 4.5 inlines the other functions and 4.6 doesn't.
 Adding an __attribute__((always_inline)) to both gives the following:

For 4.5, main is:

main:
movwr3, #22136
movtr3, 4660
and r3, r0, r3
cbnzr3, .L10
mvn r3, #15
lslsr2, r0, r3
ubfxr0, r0, #30, #10
and r3, r0, #768
lsrsr0, r2, #24
orr r0, r3, r0
bx  lr
.L10:
ubfxr3, r0, #22, #2
lsrsr0, r0, #24
lslsr3, r3, #8
orr r0, r3, r0
bx  lr

For 4.6 it becomes:

main:
movwr3, #22136
movtr3, 4660
andsr3, r3, r0
cbz r3, .L13
ubfxr3, r0, #22, #2
lsrsr0, r0, #24
lslsr3, r3, #8
.L12:
orrsr0, r0, r3
bx  lr
.L13:
mov r0, r3
b   .L12


[Bug target/48803] arm: Bad assembler produced by bit extract/shift

2011-05-06 Thread ramana at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48803

Ramana Radhakrishnan ramana at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||wrong-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2011.05.06 13:10:47
 CC||ramana at gcc dot gnu.org
 Ever Confirmed|0   |1

--- Comment #1 from Ramana Radhakrishnan ramana at gcc dot gnu.org 2011-05-06 
13:10:47 UTC ---
Occurs on gcc 4.5 branch but not on 4.6 branch or trunk. Need to see where and
why it got fixed .

Ramana