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/15540] Accessing arrays in packed structs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-19 13:18 -------
For 3.4 20031108, it gives:
        mov     ip, sp
        stmfd   sp!, {r4, fp, ip, lr, pc}
        sub     fp, ip, #4
        sub     sp, sp, #20
        mov     r4, r0
        ldr     r1, .L2
        sub     r0, fp, #36
        mov     r2, #18
        bl      memcpy
        add     r4, r4, r4, asl #2
        sub     r0, fp, #16
        add     r4, r4, r0
        sub     r3, r4, #16
        ldrb    r1, [r4, #-16]  @ zero_extendqisi2
        ldrb    r2, [r3, #1]    @ zero_extendqisi2
        ldrb    ip, [r3, #2]    @ zero_extendqisi2
        orr     r0, r1, r2, asl #8
        ldrb    r1, [r3, #3]    @ zero_extendqisi2
        orr     r0, r0, ip, asl #16
        orr     r0, r0, r1, asl #24
        sub     sp, fp, #16
        ldmfd   sp, {r4, fp, sp, pc}

Which looks correct, can you verify that?

-- 


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


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