2013-10-22 Steve Ellcey <sellcey@mips.com>
* gcc.target/mips/nor.c: New.
From-SVN: r203934
+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
--- /dev/null
+/* { 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);
+}