From 118584f732d0bba5dd3c7a68f1db88e0184763f6 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 12 Feb 2015 14:14:47 +0100 Subject: [PATCH] re PR testsuite/64930 (FAIL: gcc.target/powerpc/atomic-p7.c scan-assembler-times isync 12) PR testsuite/64930 * gcc.target/powerpc/atomic-p7.c: Adjust expected count of isync instructions for 2015-01-14 get_memmodel changes. * gcc.target/powerpc/atomic-p8.c: Likewise. From-SVN: r220646 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/atomic-p7.c | 4 +++- gcc/testsuite/gcc.target/powerpc/atomic-p8.c | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 01127e953c5..910e873adfe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2015-02-12 Jakub Jelinek + PR testsuite/64930 + * gcc.target/powerpc/atomic-p7.c: Adjust expected count of isync + instructions for 2015-01-14 get_memmodel changes. + * gcc.target/powerpc/atomic-p8.c: Likewise. + PR sanitizer/65019 * g++.dg/ubsan/pr65019.C: New test. diff --git a/gcc/testsuite/gcc.target/powerpc/atomic-p7.c b/gcc/testsuite/gcc.target/powerpc/atomic-p7.c index 9f62e6c4f0c..657dc16cce7 100644 --- a/gcc/testsuite/gcc.target/powerpc/atomic-p7.c +++ b/gcc/testsuite/gcc.target/powerpc/atomic-p7.c @@ -14,7 +14,9 @@ /* { dg-final { scan-assembler-times "stdcx" 6 } } */ /* { dg-final { scan-assembler-not "stqcx" } } */ /* { dg-final { scan-assembler-times "bl __atomic" 6 } } */ -/* { dg-final { scan-assembler-times "isync" 12 } } */ +/* As since PR59448 GCC promotes consume to acquire, the expected isync count + is 16 rather than 12. */ +/* { dg-final { scan-assembler-times "isync" 16 } } */ /* { dg-final { scan-assembler-times "lwsync" 8 } } */ /* { dg-final { scan-assembler-not "mtvsrd" } } */ /* { dg-final { scan-assembler-not "mtvsrwa" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/atomic-p8.c b/gcc/testsuite/gcc.target/powerpc/atomic-p8.c index b5255aac42b..fe7c0e0af83 100644 --- a/gcc/testsuite/gcc.target/powerpc/atomic-p8.c +++ b/gcc/testsuite/gcc.target/powerpc/atomic-p8.c @@ -14,7 +14,9 @@ /* { dg-final { scan-assembler-times "stdcx" 7 } } */ /* { dg-final { scan-assembler-times "stqcx" 7 } } */ /* { dg-final { scan-assembler-not "bl __atomic" } } */ -/* { dg-final { scan-assembler-times "isync" 20 } } */ +/* As since PR59448 GCC promotes consume to acquire, the expected isync count + is 25 rather than 20. */ +/* { dg-final { scan-assembler-times "isync" 25 } } */ /* { dg-final { scan-assembler-times "lwsync" 10 } } */ /* { dg-final { scan-assembler-not "mtvsrd" } } */ /* { dg-final { scan-assembler-not "mtvsrwa" } } */ -- 2.30.2