summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/mult-7.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-28 14:03:29 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-28 14:03:29 +0000
commitf50671fe14ad06fc6793753f05c03600c2fb9903 (patch)
tree48f977d57ea2f4163dd60d917bfd1230174a7219 /gcc/testsuite/gcc.target/mips/mult-7.c
parent506cd07ff0a6af7ed5de17de608e7d4ca48480c8 (diff)
downloadgcc-f50671fe14ad06fc6793753f05c03600c2fb9903.tar.gz
2011-11-28 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 181775 using svnmerge git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@181777 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/mult-7.c')
-rw-r--r--gcc/testsuite/gcc.target/mips/mult-7.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/mult-7.c b/gcc/testsuite/gcc.target/mips/mult-7.c
new file mode 100644
index 00000000000..7c2989baa52
--- /dev/null
+++ b/gcc/testsuite/gcc.target/mips/mult-7.c
@@ -0,0 +1,12 @@
+/* { dg-options "-O -mgp64 (-mips16)" } */
+/* { dg-final { scan-assembler "\tdmultu?\t" } } */
+/* { dg-final { scan-assembler "\tmflo\t" } } */
+/* { dg-final { scan-assembler-not "\tmfhi\t" } } */
+
+typedef unsigned int DI __attribute__((mode(DI)));
+
+MIPS16 DI
+f (DI x, DI y)
+{
+ return x * y;
+}