URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [pr43597.c] - Rev 783
Compare with Previous | Blame | View Log
/* { dg-do assemble } */ /* { dg-options "-Os -save-temps -mthumb" } */ /* { dg-require-effective-target arm_thumb2_ok } */ extern int bar (); extern void bar2 (int); int foo4 () { int result = 0; int f = -1; f = bar (); if (f < 0) { result = 1; goto bail; } bar (); bail: bar2 (f); return result; } /* { dg-final { scan-assembler-times "sub" 1 } } */ /* { dg-final { scan-assembler-times "cmp" 0 } } */ /* { dg-final { object-size text <= 30 } } */ /* { dg-final { cleanup-saved-temps "pr43597" } } */