gcc/testsuite/gcc.target/mips/nor.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ |
| 3 | /* { dg-final { scan-assembler-times "\tnor\t" 1 } } */ |
| 4 | /* { dg-final { scan-assembler-not "\tor" } } */ |
| 5 | |
| 6 | /* Test that we generate a 'nor' instruction and no 'or' instructions. */ |
| 7 | |
| 8 | NOMIPS16 int f (int a, int b) |
| 9 | { |
| 10 | return ~(a|b); |
| 11 | } |