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/] [arm/] [thumb2-mul-speed.c] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
/* Do not use 16-bit multiply instructions in Thumb-2 mode when optimizing for speed. */ /* { dg-options "-mthumb -O2" } */ /* { dg-require-effective-target arm_thumb2_ok } */ /* { dg-final { scan-assembler-not "muls" } } */ int f(int i, int j) { return i * j; } int x; void g(int i, int j) { if (i * j < 0) x = 1; } int h(int i, int j) { i = i * j; if (i < 0) x = 1; return i; }
Go to most recent revision | Compare with Previous | Blame | View Log