Commit a4fb29bc by Kyrylo Tkachov Committed by Kyrylo Tkachov

Testcase for PR rtl-optimization/68381

	PR rtl-optimization/68381
	* gcc.c-torture/execute/pr68381.c: New test.

From-SVN: r230809
parent ef3a7506
2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR rtl-optimization/68381
* gcc.c-torture/execute/pr68381.c: New test.
2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/aarch64/cmpimm_branch_1.c: New test. * gcc.target/aarch64/cmpimm_branch_1.c: New test.
* gcc.target/aarch64/cmpimm_cset_1.c: Likewise. * gcc.target/aarch64/cmpimm_cset_1.c: Likewise.
......
/* { dg-options "-O -fexpensive-optimizations -fno-tree-bit-ccp" } */
__attribute__ ((noinline, noclone))
int
foo (unsigned short x, unsigned short y)
{
int r;
if (__builtin_mul_overflow (x, y, &r))
__builtin_abort ();
return r;
}
int
main (void)
{
int x = 1;
int y = 2;
if (foo (x, y) != x * y)
__builtin_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