testsuite: Adjust expected instruction count for PPC fold testcases.
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 16 Dec 2020 20:16:06 +0000 (15:16 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Wed, 16 Dec 2020 20:22:04 +0000 (15:22 -0500)
commit r11-5958 changed the code generation for the vector logical fold
tests.  This patch updates the expected instruction counts for different
instructions.

gcc/testsuite/ChangeLog:

2020-12-16  David Edelsohn  <dje.gcc@gmail.com>

PR target/98280
* gcc.target/powerpc/fold-vec-logical-ors-char.c: Adjust count.
* gcc.target/powerpc/fold-vec-logical-ors-int.c: Adjust count.
* gcc.target/powerpc/fold-vec-logical-ors-longlong.c: Adjust count.
* gcc.target/powerpc/fold-vec-logical-ors-short.c: Adjust count.
* gcc.target/powerpc/fold-vec-logical-other-char.c: Adjust count.
* gcc.target/powerpc/fold-vec-logical-other-int.c: Adjust count.
* gcc.target/powerpc/fold-vec-logical-other-longlong.c: Adjust count.
* gcc.target/powerpc/fold-vec-logical-other-short.c: Adjust count.

gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-char.c
gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-int.c
gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-longlong.c
gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-short.c
gcc/testsuite/gcc.target/powerpc/fold-vec-logical-other-char.c
gcc/testsuite/gcc.target/powerpc/fold-vec-logical-other-int.c
gcc/testsuite/gcc.target/powerpc/fold-vec-logical-other-longlong.c
gcc/testsuite/gcc.target/powerpc/fold-vec-logical-other-short.c

index 7406039d0549ab6f96027fc72a019685ffff45bb..713fed7824a004e96e1a04c6b977ffd704f1c33e 100644 (file)
@@ -120,6 +120,6 @@ test6_nor (vector unsigned char x, vector unsigned char y)
   return *foo;
 }
 
-/* { dg-final { scan-assembler-times {\mxxlor\M} 6 } } */
+/* { dg-final { scan-assembler-times {\mxxlor\M} 7 } } */
 /* { dg-final { scan-assembler-times {\mxxlxor\M} 6 } } */
-/* { dg-final { scan-assembler-times {\mxxlnor\M} 2 } } */
+/* { dg-final { scan-assembler-times {\mxxlnor\M} 1 } } */
index a7c6366b938b5dc1d9e000953e9c0b4d784e4eeb..4d1c78f40ecac0cd17d4aeee36200c68abb912c5 100644 (file)
@@ -119,6 +119,6 @@ test6_nor (vector unsigned int x, vector unsigned int y)
   return *foo;
 }
 
-/* { dg-final { scan-assembler-times {\mxxlor\M} 6 } } */
+/* { dg-final { scan-assembler-times {\mxxlor\M} 7 } } */
 /* { dg-final { scan-assembler-times {\mxxlxor\M} 6 } } */
-/* { dg-final { scan-assembler-times {\mxxlnor\M} 2 } } */
+/* { dg-final { scan-assembler-times {\mxxlnor\M} 1 } } */
index 10c69d3d87b56249dbc44a181f82f7af5c05c387..27ef09ada801bd45f4eed92db0ac02ae4ea53dde 100644 (file)
@@ -156,6 +156,6 @@ test6_nor (vector unsigned long long x, vector unsigned long long y)
 // For simplicity, this test now only targets "powerpc_p8vector_ok" environments
 // where the answer is expected to be 6.
 
-/* { dg-final { scan-assembler-times {\mxxlor\M} 6 } } */
+/* { dg-final { scan-assembler-times {\mxxlor\M} 9 } } */
 /* { dg-final { scan-assembler-times {\mxxlxor\M} 6 } } */
-/* { dg-final { scan-assembler-times {\mxxlnor\M} 6 } } */
+/* { dg-final { scan-assembler-times {\mxxlnor\M} 3 } } */
index 8352a7f4dc59e6ffe7872dd9af45f63eff95b7ac..f796c5b33a9cb39bd38b409db4270dfda84389e8 100644 (file)
@@ -119,6 +119,6 @@ test6_nor (vector unsigned short x, vector unsigned short y)
   return *foo;
 }
 
-/* { dg-final { scan-assembler-times {\mxxlor\M} 6 } } */
+/* { dg-final { scan-assembler-times {\mxxlor\M} 7 } } */
 /* { dg-final { scan-assembler-times {\mxxlxor\M} 6 } } */
-/* { dg-final { scan-assembler-times {\mxxlnor\M} 2 } } */
+/* { dg-final { scan-assembler-times {\mxxlnor\M} 1 } } */
index 7fe3e0b8e0e955b3beac5ccabf9a78194bf374ec..e74308ccda29ca56931320cd1f5859eeb4ccbc89 100644 (file)
@@ -104,5 +104,5 @@ test6_nand (vector unsigned char x, vector unsigned char y)
   return *foo;
 }
 
-/* { dg-final { scan-assembler-times {\mxxlnand\M} 6 } } */
+/* { dg-final { scan-assembler-times {\mxxlnand\M} 3 } } */
 /* { dg-final { scan-assembler-times {\mxxlorc\M} 6 } } */
index 61d34059b67564cb4ad1405e322c5153752eab68..57edaad52a8a949f9992c0f69f7b1499b2424d30 100644 (file)
@@ -104,5 +104,5 @@ test6_nand (vector unsigned int x, vector unsigned int y)
   return *foo;
 }
 
-/* { dg-final { scan-assembler-times {\mxxlnand\M} 6 } } */
+/* { dg-final { scan-assembler-times {\mxxlnand\M} 3 } } */
 /* { dg-final { scan-assembler-times {\mxxlorc\M} 6 } } */
index 8e14927620e90e4fd7554d9e7ba235dd198041e7..d4b85796406bcc7a3e2ba8e977fa31552a2f4d34 100644 (file)
@@ -102,5 +102,5 @@ test6_nand (vector unsigned long long x, vector unsigned long long y)
   return *foo;
 }
 
+/* { dg-final { scan-assembler-times {\mxxlnand\M} 3 } } */
 /* { dg-final { scan-assembler-times {\mxxlorc\M} 6 } } */
-/* { dg-final { scan-assembler-times {\mxxlnand\M} 6 } } */
index cc354b935dcc15ce03b2f2be7b60af72fcd2ff7b..bf98652750c833484bf3a8884188f76a470c26e4 100644 (file)
@@ -104,5 +104,5 @@ test6_nand (vector unsigned short x, vector unsigned short y)
   return *foo;
 }
 
-/* { dg-final { scan-assembler-times {\mxxlnand\M} 6 } } */
+/* { dg-final { scan-assembler-times {\mxxlnand\M} 3 } } */
 /* { dg-final { scan-assembler-times {\mxxlorc\M} 6 } } */