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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [cmov6.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2
/* { dg-options "-O2 -march=k8" } */
3
/* { dg-final { scan-assembler "cmov\[^6\]" } } */
4
 
5
/* Verify that blocks are converted to conditional moves.  */
6
extern int bar (int, int);
7
int foo (int c, int d, int e)
8
{
9
  int a, b;
10
 
11
  if (c)
12
    {
13
      a = 10;
14
      b = d;
15
    }
16
  else
17
    {
18
      a = e;
19
      b = 20;
20
    }
21
  return bar (a, b);
22
}

powered by: WebSVN 2.1.0

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