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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [branch-cost-1.c] - Blame information for rev 704

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-options "-mbranch-cost=1 isa>=4 -O2" } */
2
NOMIPS16 int
3
foo (int x, int y, int z, int k)
4
{
5
  return x == k ? x + y : z - x;
6
}
7
/* { dg-final { scan-assembler-not "\t(movz|movn)\t" } } */
8
/* { dg-final { scan-assembler "\t(bne|beq)\t" } } */

powered by: WebSVN 2.1.0

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