OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [iftrap-2.c] - Blame information for rev 328

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Verify that we optimize to conditional traps.  */
2
/* { dg-options "-O" } */
3
/* { dg-do compile { target rs6000-*-* powerpc*-*-* sparc*-*-* ia64-*-* } } */
4
/* { dg-final { scan-assembler-not "^\t(trap|ta|break)\[ \t\]" } } */
5
 
6
extern void abort(void);
7
 
8
void f1(int p)
9
{
10
  if (p)
11
    __builtin_trap();
12
  else
13
    abort();
14
}
15
 
16
void f2(int p)
17
{
18
  if (p)
19
    abort();
20
  else
21
    __builtin_trap();
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.