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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [builtin-unreachable-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* Check that __builtin_unreachable() is a no-return function thus
2
   causing the dead call to foo() to be removed.  The comparison is
3
   dead too, and should be removed.  */
4
/* { dg-do compile } */
5
/* { dg-options "-O2 -fdump-tree-optimized -fdump-rtl-cse1" } */
6
void foo (void);
7
 
8
int
9
f (int i)
10
{
11
  if (i > 1)
12
    __builtin_unreachable();
13
  if (i > 1)
14
    foo ();
15
  return 1;
16
}
17
/* { dg-final { scan-tree-dump-not "foo" "optimized" } } */
18
/* { dg-final { scan-rtl-dump-not "\\(if_then_else" "cse1" } } */
19
/* { dg-final { cleanup-tree-dump "optimized" } } */
20
/* { dg-final { cleanup-rtl-dump "cse1" } } */

powered by: WebSVN 2.1.0

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