nor.c: New.

2013-10-22  Steve Ellcey  <sellcey@mips.com>

	* gcc.target/mips/nor.c: New.

From-SVN: r203934
This commit is contained in:
Steve Ellcey 2013-10-22 18:25:56 +00:00 committed by Steve Ellcey
parent ade97eb169
commit fb61ee69c3
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-10-22 Steve Ellcey <sellcey@mips.com>
* gcc.target/mips/nor.c: New.
2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
* gcc.target/powerpc/altivec-perm-1.c: Move the two vector pack

View File

@ -0,0 +1,11 @@
/* { dg-do compile } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler-times "\tnor\t" 1 } } */
/* { dg-final { scan-assembler-not "\tor" } } */
/* Test that we generate a 'nor' instruction and no 'or' instructions. */
NOMIPS16 int f (int a, int b)
{
return ~(a|b);
}