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/] [mips/] [octeon-bbit-2.c] - Rev 321
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -march=octeon -mbranch-likely" } */ /* { dg-final { scan-assembler "\tbbit\[01\]\t" } } */ /* { dg-final { scan-assembler-not "\tbbit\[01\]l\t" } } */ /* { dg-final { scan-assembler "\tbnel\t" } } */ /* { dg-final { scan-assembler-not "\tbne\t" } } */ NOMIPS16 int f (int n, int i) { int s = 0; for (; i & 1; i++) s += i; return s; } NOMIPS16 int g (int n, int i) { int s = 0; for (i = 0; i < n; i++) s += i; return s; }