Commit 567b99c8 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/46491 (ipa-pure-const.c miscompilation)

	PR tree-optimization/46491
	* gcc.target/i386/pr46491.c: New test.

From-SVN: r166777
parent 7a4f257d
2010-11-15 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/46491
* gcc.target/i386/pr46491.c: New test.
PR tree-optimization/46461
* gcc.c-torture/compile/pr46461.c: New test.
......
/* PR tree-optimization/46491 */
/* { dg-do run } */
/* { dg-options "-O2" } */
extern void abort (void);
__attribute__((noinline)) int
foo (int *p)
{
int r;
asm ("movl $6, (%1)\n\txorl %0, %0" : "=r" (r) : "r" (p) : "memory");
return r;
}
int
main (void)
{
int p = 8;
if ((foo (&p) ? : p) != 6)
abort ();
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