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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -march=k8" } */
3
/* { dg-final { scan-assembler "sbb" } } */
4
 
5
extern void abort (void);
6
 
7
/* Conditional increment is best done using sbb $-1, val.  */
8
int t[]={0,0,0,0,1,1,1,1,1,1};
9
q()
10
{
11
  int sum=0;
12
  int i;
13
  for (i=0;i<10;i++)
14
    if (t[i])
15
       sum++;
16
  if (sum != 6)
17
    abort ();
18
}
19
main()
20
{
21
  int i;
22
  for (i=0;i<10000000;i++)
23
    q();
24
}

powered by: WebSVN 2.1.0

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