https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70751

            Bug ID: 70751
           Summary: FAIL: gcc.target/arm/eliminate.c scan-assembler-times
                    r0,[\\t ]*sp 3 since r235184
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jiwang at gcc dot gnu.org
                CC: vmakarov at redhat dot com
  Target Milestone: ---
            Target: arm*

r235184 caused the following regression on trunk

  FAIL: gcc: gcc.target/arm/eliminate.c scan-assembler-times r0,[\\t ]*sp 3

configuration: --target=arm-none-eabi --enable-languages=c
compile option: -O2 -march=armv7-a

before:
===
foo:
        str     lr, [sp, #-4]!
        sub     sp, sp, #12
        add     r0, sp, #4
        bl      bar
        add     r0, sp, #4
        bl      bar
        add     r0, sp, #4
        bl      bar
        add     sp, sp, #12
        ldr     pc, [sp], #4

after:
===
foo:
        str     lr, [sp, #-4]!
        sub     sp, sp, #20
        add     r3, sp, #12
        str     r3, [sp, #4]
        mov     r0, r3
        bl      bar
        add     r3, sp, #12
        str     r3, [sp, #4]
        mov     r0, r3
        bl      bar
        add     r3, sp, #12
        str     r3, [sp, #4]
        mov     r0, r3
        bl      bar
        add     sp, sp, #20
        ldr     pc, [sp], #4

Reply via email to