Commit 1eb68b8c by Richard Biener Committed by Richard Biener

re PR middle-end/63184 (Fails to simplify comparison)

2018-12-05  Richard Biener  <rguenther@suse.de>

	PR middle-end/63184
	* c-c++-common/pr19807-2.c: New testcase.
	* c-c++-common/pr19807-3.c: Likewise.

From-SVN: r266827
parent c0c5112b
2018-12-05 Richard Biener <rguenther@suse.de>
PR middle-end/63184
* c-c++-common/pr19807-2.c: New testcase.
* c-c++-common/pr19807-3.c: Likewise.
2018-12-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR testsuite/88208
......
/* { dg-do link } */
/* { dg-options "-O" } */
extern void link_error(void);
int i;
int main()
{
int a[4];
if ((char*)&a[1] + 4*i + 4 != (char*)&a[i+2])
link_error();
return 0;
}
/* { dg-do link } */
/* { dg-options "-O" } */
extern void link_error(void);
int i;
int main()
{
int a[4];
if (&a[1] + i + 1 != &a[i+2])
link_error();
return 0;
}
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