public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-10-19 6:00 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-10-19 6:00 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a020819328aee38916e9d46aa895ece5896b7e08
commit a020819328aee38916e9d46aa895ece5896b7e08
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Oct 19 02:53:03 2023 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed54..ec9a6ad85f7b 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-09-30 4:15 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-09-30 4:15 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:bd38fa38f8dce3d0dd9b4cd1af28c9f94eeca3ed
commit bd38fa38f8dce3d0dd9b4cd1af28c9f94eeca3ed
Author: Alexandre Oliva <oliva@adacore.com>
Date: Fri Apr 14 23:53:18 2023 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed5..ec9a6ad85f7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-09-29 22:11 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-09-29 22:11 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5692e76f500442916b02bf5356a74c6d1e238540
commit 5692e76f500442916b02bf5356a74c6d1e238540
Author: Alexandre Oliva <oliva@adacore.com>
Date: Fri Apr 14 23:53:18 2023 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed5..ec9a6ad85f7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-04-06 6:33 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-04-06 6:33 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b8c23c5ca15020b484ee90851a44cbc73d442993
commit b8c23c5ca15020b484ee90851a44cbc73d442993
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Apr 5 11:26:28 2023 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed5..ec9a6ad85f7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-03-30 14:06 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-03-30 14:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:8920123c5228dfd876f6703c71f5168d3983f2e8
commit 8920123c5228dfd876f6703c71f5168d3983f2e8
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Mar 30 05:06:21 2023 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed5..ec9a6ad85f7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-03-24 6:24 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-03-24 6:24 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:25b9448a83d36a3a4ec1ae5d3cbfe60e8436e2ef
commit 25b9448a83d36a3a4ec1ae5d3cbfe60e8436e2ef
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Mar 23 00:44:15 2023 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed5..ec9a6ad85f7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-03-23 3:46 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-03-23 3:46 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:750c07eae93ef7c80f083c53417d09d53864f84f
commit 750c07eae93ef7c80f083c53417d09d53864f84f
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Mar 23 00:44:15 2023 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed5..ec9a6ad85f7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-03-16 14:21 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-03-16 14:21 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9957e5804f693d82cb4948b06816f6e7cc451995
commit 9957e5804f693d82cb4948b06816f6e7cc451995
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Mar 18 05:35:18 2021 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed5..ec9a6ad85f7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2023-03-15 14:04 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2023-03-15 14:04 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:dc4b841d223d5c54da58a26a24d0544ac88a0cd0
commit dc4b841d223d5c54da58a26a24d0544ac88a0cd0
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Mar 18 05:35:18 2021 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index a8adbf1eed5..ec9a6ad85f7 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -8,6 +8,10 @@
{ dg-options "-O2 -Wall -fdump-tree-optimized" }
{ dg-additional-options "-msse" { target i?86-*-* x86_64-*-* } } */
+/* On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
+
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
#define LEN_MAX (__PTRDIFF_MAX__ - 2)
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2021-03-11 10:21 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2021-03-11 10:21 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5c52be2a4aaa850c8e00498846ce9354d4faf7a0
commit 5c52be2a4aaa850c8e00498846ce9354d4faf7a0
Author: Alexandre Oliva <oliva@adacore.com>
Date: Tue Mar 9 18:42:54 2021 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index 9124fe4740a..9978f5cf3bc 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -5,7 +5,11 @@
such a store.
{ dg-do compile { target aarch64*-*-* i?86-*-* powerpc*-*-* x86_64-*-* } }
- { dg-options "-O2 -Wall -fdump-tree-optimized" } */
+ { dg-options "-O2 -Wall -fdump-tree-optimized" }
+
+ On powerpc configurations that have -mstrict-align by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2021-03-09 21:47 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2021-03-09 21:47 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c38a149840c5e0572c8ae9cd82aa4781feab9100
commit c38a149840c5e0572c8ae9cd82aa4781feab9100
Author: Alexandre Oliva <oliva@adacore.com>
Date: Tue Mar 9 18:42:54 2021 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index 9124fe4740a..104a5e509fd 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -5,7 +5,11 @@
such a store.
{ dg-do compile { target aarch64*-*-* i?86-*-* powerpc*-*-* x86_64-*-* } }
- { dg-options "-O2 -Wall -fdump-tree-optimized" } */
+ { dg-options "-O2 -Wall -fdump-tree-optimized" }
+
+ On powerpc configurations that have -mno-strict-alignment by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2021-03-09 21:25 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2021-03-09 21:25 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a99a74df64b1a140af331a6a64e86ba1629d57f9
commit a99a74df64b1a140af331a6a64e86ba1629d57f9
Author: Alexandre Oliva <oliva@adacore.com>
Date: Mon Mar 8 23:22:47 2021 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index 9124fe4740a..104a5e509fd 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -5,7 +5,11 @@
such a store.
{ dg-do compile { target aarch64*-*-* i?86-*-* powerpc*-*-* x86_64-*-* } }
- { dg-options "-O2 -Wall -fdump-tree-optimized" } */
+ { dg-options "-O2 -Wall -fdump-tree-optimized" }
+
+ On powerpc configurations that have -mno-strict-alignment by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc
@ 2021-03-09 2:26 Alexandre Oliva
0 siblings, 0 replies; 13+ messages in thread
From: Alexandre Oliva @ 2021-03-09 2:26 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9e999a9b5b5f3bffdf496d4c54cd83c2df6a06fb
commit 9e999a9b5b5f3bffdf496d4c54cd83c2df6a06fb
Author: Alexandre Oliva <oliva@adacore.com>
Date: Mon Mar 8 23:22:47 2021 -0300
use -mno-strict-align for strlenopt-80.c on powerpc
ppc configurations that have -mstrict-align enabled by default fail
gcc.dg/strlenopt-80.c, because some memcpy calls don't get turned into
MEM_REFs, which defeats the tested-for strlen optimization.
for gcc/testsuite/ChangeLog
* gcc.dg/strlenopt-80.c: Add -mno-strict-align on ppc.
Diff:
---
gcc/testsuite/gcc.dg/strlenopt-80.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/strlenopt-80.c b/gcc/testsuite/gcc.dg/strlenopt-80.c
index 9124fe4740a..104a5e509fd 100644
--- a/gcc/testsuite/gcc.dg/strlenopt-80.c
+++ b/gcc/testsuite/gcc.dg/strlenopt-80.c
@@ -5,7 +5,11 @@
such a store.
{ dg-do compile { target aarch64*-*-* i?86-*-* powerpc*-*-* x86_64-*-* } }
- { dg-options "-O2 -Wall -fdump-tree-optimized" } */
+ { dg-options "-O2 -Wall -fdump-tree-optimized" }
+
+ On powerpc configurations that have -mno-strict-alignment by default,
+ the memcpy calls for ncpylog >= 3 are not turned into MEM_REFs.
+ { dg-additional-options "-mno-strict-align" { target powerpc*-*-* } } */
#define CHAR_BIT __CHAR_BIT__
#define SIZE_MAX __SIZE_MAX__
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2023-10-19 6:00 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-19 6:00 [gcc(refs/users/aoliva/heads/testme)] use -mno-strict-align for strlenopt-80.c on powerpc Alexandre Oliva
-- strict thread matches above, loose matches on Subject: below --
2023-09-30 4:15 Alexandre Oliva
2023-09-29 22:11 Alexandre Oliva
2023-04-06 6:33 Alexandre Oliva
2023-03-30 14:06 Alexandre Oliva
2023-03-24 6:24 Alexandre Oliva
2023-03-23 3:46 Alexandre Oliva
2023-03-16 14:21 Alexandre Oliva
2023-03-15 14:04 Alexandre Oliva
2021-03-11 10:21 Alexandre Oliva
2021-03-09 21:47 Alexandre Oliva
2021-03-09 21:25 Alexandre Oliva
2021-03-09 2:26 Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).