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

--- Comment #3 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to Peter Bergner from comment #2)
> The code change that led to this looks correct to me.  Are we possibly just
> folding more than we used to (a good thing), and that is changing our
> numbers?  What are the actual and expected counts?

So looking at the differences between "before" and "after", we're seeing:
 test6_nor:
 .LFB13:
        .cfi_startproc
-       xxlor 34,34,35
        li 9,0
        lvx 0,0,9
        addi 10,1,-16
        xxpermdi 32,32,32,2
        stxvd2x 32,0,10
        xxpermdi 32,32,32,2
-       vsububm 2,0,2
-       vspltisw 0,-1
+       xxlnor 34,34,35
        vaddubm 2,2,0
        stvx 2,0,9
        blr

...so yes, we are getting more folding than before and the generated code is
better, so we should update the expected counts.  It seems to be the same issue
in all of the tests.

Reply via email to