[Bug target/46092] Improve constant handling of thumb2 instructions

2012-02-24 Thread ramana at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46092

Ramana Radhakrishnan ramana at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 CC||ramana at gcc dot gnu.org
 Resolution||FIXED
   Target Milestone|--- |4.7.0
   Severity|normal  |enhancement

--- Comment #4 from Ramana Radhakrishnan ramana at gcc dot gnu.org 2012-02-24 
12:24:04 UTC ---
Trunk generates this today. Thus fixed. 

Ramana

tv:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
movwr3, #65520
cmpr0, r3
itthi
subhir0, r0, #65280
subhir0, r0, #241
bxlr
.sizetv, .-tv
.identGCC: (GNU) 4.7.0 20120116 (experimental)


[Bug target/46092] Improve constant handling of thumb2 instructions

2010-12-10 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46092

Andrew Stubbs ams at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||ams at gcc dot gnu.org
 AssignedTo|unassigned at gcc dot   |ams at gcc dot gnu.org
   |gnu.org |

--- Comment #2 from Andrew Stubbs ams at gcc dot gnu.org 2010-12-10 17:23:51 
UTC ---
I've posted a patch to fix this issue (among others):

  http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00652.html


[Bug target/46092] Improve constant handling of thumb2 instructions

2010-12-10 Thread ams at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46092

--- Comment #3 from Andrew Stubbs ams at gcc dot gnu.org 2010-12-10 17:27:04 
UTC ---
Oh, I should say, what it actually does is this:

 subhi   r0, r0, #65280   ; 0xff00
 subhi   r0, r0, #241 ; 0x00f1