Commit 33a0bfcd by Richard Biener Committed by Richard Biener

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
parent 080629d3
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> 2019-05-06 Martin Liska <mliska@suse.cz>
PR sanitizer/90312 PR sanitizer/90312
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
int f(){ int a; return &a==(void *)"hello"; } int f(){ int a; return &a==(void *)"hello"; }
int g(){ return "bye"=="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" } } */ /* { dg-final { scan-tree-dump-times "hello" 1 "original" } } */
/* The test in h() should be retained because the result depends on /* The test in h() should be retained because the result depends on
string merging. */ string merging. */
/* { dg-final { scan-assembler "hello" } } */ /* { dg-final { scan-assembler "hellooo" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment