[Bug target/11831] [ARM] Logical expression evaluation with condition fields

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug target/11831] [ARM] Logical expression evaluation with condition fields

cvs-commit at gcc dot gnu.org

------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-27 13:43 -------
It looks worse on the mainline:
        stmfd   sp!, {r4, lr}
        mov     r4, r0
        bl      func
        add     r4, r4, r0
        ldrb    r3, [r4, #-4]   @ zero_extendqisi2
        cmp     r3, #97
        bne     .L2
        ldrb    r3, [r4, #-3]   @ zero_extendqisi2
        cmp     r3, #98
        bne     .L2
        ldrb    r3, [r4, #-2]   @ zero_extendqisi2
        cmp     r3, #99
        bne     .L2
        ldrb    r3, [r4, #-1]   @ zero_extendqisi2
        cmp     r3, #100
        movne   r0, #0
        moveq   r0, #1
        ldmfd   sp!, {r4, pc}
.L2:
        mov     r0, #0
        ldmfd   sp!, {r4, pc}
        .size   foo, .-foo


--
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4.0


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