This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/43461] unsigned int var; (var & 0xFF) not translated to uxtb insn in Thumb mode



------- Comment #4 from ramana at gcc dot gnu dot org  2010-08-23 14:31 -------

Trunk of a recent vintage generates - 


    @ frame_needed = 0, uses_anonymous_args = 0
        push    {r4, lr}
        bl      a
        movw    r4, #:lower16:b
        movt    r4, #:upper16:b
        uxtb    r0, r0
        str     r0, [r4, #0]
        bl      a
        uxtb    r0, r0
        str     r0, [r4, #0]
        bl      a
        uxth    r0, r0
        str     r0, [r4, #0]
        bl      a
        uxth    r0, r0
        str     r0, [r4, #0]
        pop     {r4, pc}
        .size   main, .-main
        .ident  "GCC: (GNU) 4.6.0 20100823 (experimental) [trunk revision
163469]"

This was fixed by the fix to PR44999. Hence fixed.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43461


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]