summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/builtin-unreachable.c
blob: 802cf16d39a0f4c2558775a0b5095c9ccdf010ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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" } } */