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/] [cmov1.c] - Blame information for rev 867

Go to most recent revision | 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 "sar\[^\\n\]*magic_namea" } } */
4
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_nameb" } } */
5
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_namec" } } */
6
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_named" } } */
7
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_namee" } } */
8
/* { dg-final { scan-assembler "shr\[^\\n\]*magic_namef" } } */
9
 
10
/* Check code generation for several conditional moves doable by single arithmetics.  */
11
 
12
static int magic_namea;
13
static char magic_nameb;
14
static short magic_namec;
15
static int magic_named;
16
static char magic_namee;
17
static short magic_namef;
18
 
19
unsigned int gen;
20
void m(void)
21
{
22
  magic_namec=magic_namec>=0?0:-1;
23
  magic_namea=magic_namea>=0?0:-1;
24
  magic_nameb=magic_nameb>=0?0:-1;
25
  magic_named=magic_named>=0?0:1;
26
  magic_namee=magic_namee>=0?0:1;
27
  magic_namef=magic_namef>=0?0:1;
28
}
29
 

powered by: WebSVN 2.1.0

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