re PR testsuite/90331 (New test case gcc.dg/pr87314-1.c fails)

2019-05-06  Richard Biener  <rguenther@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.

From-SVN: r270900
This commit is contained in:
Richard Biener 2019-05-06 07:38:26 +00:00 committed by Richard Biener
parent 080629d32e
commit 33a0bfcdca
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2019-05-06 Richard Biener <rguenther@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.
2019-05-06 Martin Liska <mliska@suse.cz>
PR sanitizer/90312

View file

@ -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" } } */