diff options
author | Steve Ellcey <sellcey@mips.com> | 2013-10-22 18:25:56 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2013-10-22 18:25:56 +0000 |
commit | fb61ee69c3540ec12d874e436c5ae96a46cb14df (patch) | |
tree | 339b4bd7033571a56c5203234699d63cad6b35fe /gcc | |
parent | ade97eb169cc5dd93cd617f4b13d6de21873756b (diff) | |
download | gcc-fb61ee69c3540ec12d874e436c5ae96a46cb14df.zip gcc-fb61ee69c3540ec12d874e436c5ae96a46cb14df.tar.gz gcc-fb61ee69c3540ec12d874e436c5ae96a46cb14df.tar.bz2 |
nor.c: New.
2013-10-22 Steve Ellcey <sellcey@mips.com>
* gcc.target/mips/nor.c: New.
From-SVN: r203934
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/nor.c | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 446183d..fde5341 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/mips/nor.c b/gcc/testsuite/gcc.target/mips/nor.c new file mode 100644 index 0000000..e71791b --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/nor.c @@ -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); +} |