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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [cadd.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 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.