[gcc r14-8201] testsuite, rs6000: Adjust fold-vec-extract-char.p7.c [PR111850]

Kewen Lin linkw@gcc.gnu.org
Thu Jan 18 06:01:39 GMT 2024


https://gcc.gnu.org/g:f4156fbf7d6d641f8aade8028e87cf302350c3c0

commit r14-8201-gf4156fbf7d6d641f8aade8028e87cf302350c3c0
Author: Kewen Lin <linkw@linux.ibm.com>
Date:   Thu Jan 18 00:00:52 2024 -0600

    testsuite, rs6000: Adjust fold-vec-extract-char.p7.c [PR111850]
    
    As PR101169 comment #c4 shows, previsouly the addi count
    update on fold-vec-extract-char.p7.c covered a sub-optimal
    code gen issue.  On trunk, pass fold-mem-offsets helps to
    recover the best code sequence, so this patch is to
    revert the count back to the original which matches the
    optimal addi count.
    
            PR testsuite/111850
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/powerpc/fold-vec-extract-char.p7.c: Update the
            checking count of addi to 6.

Diff:
---
 gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c
index 29a8aa84db2..42599c214e4 100644
--- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c
+++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c
@@ -11,7 +11,7 @@
 /* one extsb (extend sign-bit) instruction generated for each test against
    unsigned types */
 
-/* { dg-final { scan-assembler-times {\maddi\M} 9 } } */
+/* { dg-final { scan-assembler-times {\maddi\M} 6 } } */
 /* { dg-final { scan-assembler-times {\mli\M} 6 } } */
 /* { dg-final { scan-assembler-times {\mstxvw4x\M|\mstvx\M|\mstxv\M} 6 } } */
 /* -m32 target uses rlwinm in place of rldicl. */


More information about the Gcc-cvs mailing list