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

            Bug ID: 67490
           Summary: [6 regression] FAIL: gcc.target/powerpc/pr16458-1.c
                    scan-assembler-not cmpw
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sch...@linux-m68k.org
                CC: aoliva at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc-*-*

Broken by r226901:

$ gcc/xgcc -Bgcc/ ../gcc/testsuite/gcc.target/powerpc/pr16458-1.c -O2 -S -m32
-o pr16458-1.s
$ grep -c cmpw pr16458-1.s
1

$ diff -u gcc-20150{801,906}/Build/pr16458-1.s 
--- gcc-20150801/Build/pr16458-1.s      2015-09-07 18:56:29.000000000 +0200
+++ gcc-20150906/Build/pr16458-1.s      2015-09-07 18:56:13.000000000 +0200
@@ -10,18 +10,16 @@
        lis 10,b@ha
        lwz 9,a@l(9)
        lwz 10,b@l(10)
-       cmplw 7,9,10
+       cmpw 7,9,10
        beq 7,.L3
-       ble 7,.L7
+       cmplw 7,9,10
        li 3,2
-       blr
-       .p2align 4,,15
-.L7:
-       bge 7,.L8
+       bgtlr 7
+       bge 7,.L7
        li 3,3
        blr
        .p2align 4,,15
-.L8:
+.L7:
        li 3,4
        blr
        .p2align 4,,15
@@ -31,5 +29,5 @@
        .size   foo,.-foo
        .comm   b,4,4
        .comm   a,4,4
-       .ident  "GCC: (GNU) 6.0.0 20150801 (experimental) [trunk revision
226462]"
+       .ident  "GCC: (GNU) 6.0.0 20150906 (experimental) [trunk revision
227511]"
        .section        .note.GNU-stack,"",@progbits

Reply via email to