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.target/] [i386/] [ifcvt-onecmpl-abs-1.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-do compile } */
2
/* This test checks for if-conversion of one's complement
3
 * abs function.  */
4
/* { dg-options "-O -mtune=generic" } */
5
/* { dg-final { scan-assembler "sar" } } */
6
/* { dg-final { scan-assembler "xor" } } */
7
 
8
/* Check code generation for one's complement version of abs */
9
 
10
int onecmplabs(int x)
11
{
12
  if (x < 0)
13
    x = ~x;
14
  return x;
15
}

powered by: WebSVN 2.1.0

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