Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / nor.c
blobe71791ba31fe0568e2ea3ce46590faa268df59c0
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" } } */
6 /* Test that we generate a 'nor' instruction and no 'or' instructions. */
8 NOMIPS16 int f (int a, int b)
10 return ~(a|b);