URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gcc.target/] [mips/] [octeon-bbit-2.c] - Rev 516
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; }