This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/43461] unsigned int var; (var & 0xFF) not translated to uxtb insn in Thumb mode
- From: "ramana at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2010 14:31:21 -0000
- Subject: [Bug target/43461] unsigned int var; (var & 0xFF) not translated to uxtb insn in Thumb mode
- References: <bug-43461-18939@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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