Commit f9c35383 by David Daney Committed by David Daney

builtin-unreachable.c: New test.

2009-06-17  David Daney  <ddaney@caviumnetworks.com>

	* gcc.target/i386/builtin-unreachable.c: New test.

From-SVN: r148622
parent 82882240
2009-06-17 David Daney <ddaney@caviumnetworks.com>
* gcc.target/i386/builtin-unreachable.c: New test.
2009-06-17 Ian Lance Taylor <iant@google.com>
* gcc.dg/Wcxx-compat-14.c: New testcase.
......
/* This should return 1 without setting up a stack frame or
jumping. */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -fomit-frame-pointer" } */
int h (char *p)
{
if (*p)
__builtin_unreachable ();
return p ? 1 : 0;
}
/* { dg-final { scan-assembler-not "%e\[bs\]p" } } */
/* { dg-final { scan-assembler-not "\[\\t \]+j" } } */
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