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 optimization/10287] [3.4 regression] [ARM] Loop/conditional store bug


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
  GCC build triplet|                            |i686-pc-linux-gnu
   GCC host triplet|                            |i686-pc-linux-gnu
 GCC target triplet|                            |arm-linux


------- Additional Comments From dhazeghi@yahoo.com  2003-06-04 00:27 -------
Daniel,

the assembly I get out of gcc mainline (arm-elf targeted cross compiler) doesn't seem to be what 
you initially reported. Can you confirm whether the below code is correct? Thanks,

Dara

        .file   "test.c"
        .text
        .align  2
        .global main
        .type   main, %function
main:
        @ args = 0, pretend = 0, frame = 64
        @ frame_needed = 1, uses_anonymous_args = 0
        mov     ip, sp
        stmfd   sp!, {fp, ip, lr, pc}
        sub     fp, ip, #4
        sub     sp, sp, #64
        mov     r1, #0
        sub     r3, fp, #12
        mov     r2, #15
.L5:
        subs    r2, r2, #1
        str     r1, [r3, #-64]
        add     r3, r3, #4
        bpl     .L5
        mov     r2, #2
        sub     r1, fp, #76
        mov     r0, #1
        mov     ip, r2
.L10:
        cmp     r2, #0
        str     r0, [r1], #4
        moveq   r3, r0
        movne   r3, ip
        subs    r2, r2, #2
        str     r3, [r1], #4
        bpl     .L10
        ldr     r0, [fp, #-64]
        cmp     r0, #0
        ldmeqea fp, {fp, sp, pc}
        bl      abort
        .size   main, .-main
        .ident  "GCC: (GNU) 3.4 20030603 (experimental)"



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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