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/22528] Optimized ARM 'unsigned short's assignments are incorrect for big-endian ARMv3 targets


------- Additional Comments From pluto at agmk dot net  2005-07-17 18:50 -------
gcc-4.0.1 works fine. 
 
$ arm-linux-eabi-gcc gcc-pr22528.c -O2 -march=armv3 -S -mlittle-endian 
 
test: 
        mov     r3, #8 
        mov     r2, #0 
        strb    r3, [r0, #1] 
        strb    r2, [r0, #0] 
        mov     pc, lr 
 
$ arm-linux-eabi-gcc gcc-pr22528.c -O2 -march=armv3 -S -mbig-endian 
 
test: 
        mov     r3, #0 
        mov     r2, #8 
        strb    r3, [r0, #1] 
        strb    r2, [r0, #0] 
        mov     pc, lr 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pluto at agmk dot net


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


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