summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/mips32r2-mxhc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/mips32r2-mxhc1.c')
-rw-r--r--gcc/testsuite/gcc.target/mips/mips32r2-mxhc1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/mips32r2-mxhc1.c b/gcc/testsuite/gcc.target/mips/mips32r2-mxhc1.c
new file mode 100644
index 000000000..cf57323db
--- /dev/null
+++ b/gcc/testsuite/gcc.target/mips/mips32r2-mxhc1.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-O -mabi=32 -mfp64" } */
+/* { dg-final { scan-assembler "mthc1" } } */
+/* { dg-final { scan-assembler "mfhc1" } } */
+
+NOMIPS16 double func1 (long long a)
+{
+ return a;
+}
+
+NOMIPS16 long long func2 (double b)
+{
+ return b;
+}