Update bswap64-4 test for desired results
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Mon, 30 Mar 2020 16:13:33 +0000 (11:13 -0500)
committerWill Schmidt <will_schmidt@vnet.ibm.com>
Mon, 30 Mar 2020 16:13:33 +0000 (11:13 -0500)
Update existing testcase powerpc/bswap64-4.c to
reflect that we generate ldbrx and stdbrx instructions
for newer cpu targets, versus the pair of lwbrx and stwbrx
instructions as seen on previous cpu targets.

2020-03-24  Will Schmidt  <will_schmidt@vnet.ibm.com>

gcc/testsuite/
* gcc.target/powerpc/bswap64-4.c: Update scan-assembler
expected results.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/bswap64-4.c

index 9304d92ec1492fcbec55c93b08a4f33104541119..f893ca000d49031e4d22d53295cb8e1e05e95962 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-30  Will Schmidt  <will_schmidt@vnet.ibm.com>
+
+       * gcc.target/powerpc/bswap64-4.c: Update scan-assembler
+       expected results.
+
 2020-03-30  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/94343
index 1f5ac0e5f0963e972a3af116b89dc6458d91de95..a3c0553965265dd187fc1c2cc88a6270c36266eb 100644 (file)
@@ -2,8 +2,10 @@
 /* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-O2 -mpowerpc64" } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-final { scan-assembler-times "lwbrx" 2 } } */
-/* { dg-final { scan-assembler-times "stwbrx" 2 } } */
+/* { dg-final { scan-assembler-times "lwbrx" 2 { target { ! has_arch_pwr7 } } } } */
+/* { dg-final { scan-assembler-times "stwbrx" 2 { target { ! has_arch_pwr7 } } } } */
+/* { dg-final { scan-assembler-times "ldbrx" 1 { target has_arch_pwr7 } } } */
+/* { dg-final { scan-assembler-times "stdbrx" 1 { target has_arch_pwr7 } } } */
 
 long long swap_load (long long *a) { return __builtin_bswap64 (*a); }
 long long swap_reg (long long a) { return __builtin_bswap64 (a); }