* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-cadd.c
blob2c6360b946b3d602c4a47ea6f911d4c0c2715928
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -march=k8" } */
3 /* { dg-final { scan-assembler "sbb" } } */
5 extern void abort (void);
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()
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 ();
19 main()
21 int i;
22 for (i=0;i<10000000;i++)
23 q();