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

            Bug ID: 67948
           Summary: xor-and.c needs updating after r228661
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thopre01 at gcc dot gnu.org
  Target Milestone: ---
            Target: arm-none-eabi

After r228661, gcc.target/arm/xor-and is nicely optimized from:

ldr     r3, .L2
eors    r0, r3
lsrs    r0, r0, #1
movs    r3, #128
lsls    r3, r3, #8
orrs    r0, r3

to:

lsrs    r3, r0, #1
ldr     r0, .L2
eors    r0, r3

This means the dg-final { scan-assembler "orr" } in gcc.target/arm/xor-and no
longer PASSes. Since it's for the best, the testcase should be updated.

Reply via email to