Tested on x86_64-unknown-linux-gnu and ppc64le-linux.

Richard.

2019-05-06  Richard Biener  <rguent...@suse.de>

        PR testsuite/90331
        * gcc.dg/pr87314-1.c: Align the substring to open up
        string merging for targets aligning strings to 8 bytes.

Index: gcc/testsuite/gcc.dg/pr87314-1.c
===================================================================
--- gcc/testsuite/gcc.dg/pr87314-1.c    (revision 270847)
+++ gcc/testsuite/gcc.dg/pr87314-1.c    (working copy)
@@ -3,9 +3,9 @@
 
 int f(){ int a; return &a==(void *)"hello"; }
 int g(){ return "bye"=="hello"; }
-int h() { return "bye"=="hellobye"+5; }
+int h() { return "bye"=="helloooobye"+8; }
 
 /* { dg-final { scan-tree-dump-times "hello" 1 "original" } } */
 /* The test in h() should be retained because the result depends on
    string merging.  */
-/* { dg-final { scan-assembler "hello" } } */
+/* { dg-final { scan-assembler "hellooo" } } */

Reply via email to