This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49799] gcc arm generates illegal sbfx instruction
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Jul 2011 11:13:06 +0000
- Subject: [Bug target/49799] gcc arm generates illegal sbfx instruction
- Auto-submitted: auto-generated
- References: <bug-49799-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49799
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2011-07-21 11:10:45 UTC ---
gcc-4.5.3 and gcc-4.4.6 also generate the invalid sbfx, gcc-4.3.6 appears to
work and generates
foo:
ldrsh r3, [r0, #0]
mvn r2, #0
mov r3, r3, asl r2
cmp r2, r3, asr #16
movgt r3, #0 @ movhi
strgth r3, [r0, #0] @ movhi
bx lr