Update the call-saved tests for micromips output
authorAndrew Bennett <andrew.bennett@imgtec.com>
Thu, 15 Jan 2015 11:20:12 +0000 (11:20 +0000)
committerMatthew Fortune <mpf@gcc.gnu.org>
Thu, 15 Jan 2015 11:20:12 +0000 (11:20 +0000)
gcc/testsuite/

* gcc.target/mips/call-saved-4.c (foo): Add NOCOMPRESSION.
* gcc.target/mips/call-saved-5.c (foo): Likewise.
* gcc.target/mips/call-saved-6.c (foo): Likewise.
* gcc.target/mips/call-saved-7.c: New file.
* gcc.target/mips/call-saved-8.c: New file.
* gcc.target/mips/call-saved-9.c: New file.

Co-Authored-By: Matthew Fortune <matthew.fortune@imgtec.com>
From-SVN: r219640

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/call-saved-4.c
gcc/testsuite/gcc.target/mips/call-saved-5.c
gcc/testsuite/gcc.target/mips/call-saved-6.c
gcc/testsuite/gcc.target/mips/call-saved-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/call-saved-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/call-saved-9.c [new file with mode: 0644]

index 6b73d3159fb1ce2dddec961118b9a4b0cf1fd78f..1285633cb34af1e297df79a3a0929a90ef64d455 100644 (file)
@@ -1,3 +1,13 @@
+2015-01-15  Andrew Bennett  <andrew.bennett@imgtec.com>
+           Matthew Fortune  <matthew.fortune@imgtec.com>
+
+       * gcc.target/mips/call-saved-4.c (foo): Add NOCOMPRESSION.
+       * gcc.target/mips/call-saved-5.c (foo): Likewise.
+       * gcc.target/mips/call-saved-6.c (foo): Likewise.
+       * gcc.target/mips/call-saved-7.c: New file.
+       * gcc.target/mips/call-saved-8.c: New file.
+       * gcc.target/mips/call-saved-9.c: New file.
+
 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
 
        * gcc.target/mips/lsa.c: New file.
index 846ea321e7c7018476579bdb4fa5db3771ad9367..92881c4dbf0f33398903e637b4b916d9669313c4 100644 (file)
@@ -3,7 +3,7 @@
 
 void bar (void);
 
-void
+NOCOMPRESSION void
 foo (int x)
 {
   __builtin_unwind_init ();
index 2937b316dc719138bc78e60575da446b00849cd0..152b28fed6f0137e39c918a42c6db27071fa7e0d 100644 (file)
@@ -3,7 +3,7 @@
 
 void bar (void);
 
-void
+NOCOMPRESSION void
 foo (int x)
 {
   __builtin_unwind_init ();
index 0d1a4c845c95b496b10130ca6c9ad3fb55a8706a..a384d4a5f40c26605f1ce02f3f8c2cd09dead1fb 100644 (file)
@@ -3,7 +3,7 @@
 
 void bar (void);
 
-void
+NOCOMPRESSION void
 foo (int x)
 {
   __builtin_unwind_init ();
diff --git a/gcc/testsuite/gcc.target/mips/call-saved-7.c b/gcc/testsuite/gcc.target/mips/call-saved-7.c
new file mode 100644 (file)
index 0000000..2ebc2f1
--- /dev/null
@@ -0,0 +1,25 @@
+/* Check that we save the correct call-saved GPRs and FPRs.  */
+/* { dg-options "(HAS_LDC) -mmicromips -mabi=32 -mfp32" } */
+
+void bar (void);
+
+void
+foo (int x)
+{
+  __builtin_unwind_init ();
+  __builtin_eh_return (x, bar);
+}
+/* { dg-final { scan-assembler "\\\$16-\\\$23" } } */
+/* { dg-final { scan-assembler "\\\$(30|fp)" } } */
+/* { dg-final { scan-assembler "\\\$f20" } } */
+/* { dg-final { scan-assembler "\\\$f22" } } */
+/* { dg-final { scan-assembler "\\\$f24" } } */
+/* { dg-final { scan-assembler "\\\$f26" } } */
+/* { dg-final { scan-assembler "\\\$f28" } } */
+/* { dg-final { scan-assembler "\\\$f30" } } */
+/* { dg-final { scan-assembler-not "\\\$f21" } } */
+/* { dg-final { scan-assembler-not "\\\$f23" } } */
+/* { dg-final { scan-assembler-not "\\\$f25" } } */
+/* { dg-final { scan-assembler-not "\\\$f27" } } */
+/* { dg-final { scan-assembler-not "\\\$f29" } } */
+/* { dg-final { scan-assembler-not "\\\$f31" } } */
diff --git a/gcc/testsuite/gcc.target/mips/call-saved-8.c b/gcc/testsuite/gcc.target/mips/call-saved-8.c
new file mode 100644 (file)
index 0000000..4e8f8d7
--- /dev/null
@@ -0,0 +1,25 @@
+/* Check that we save the correct call-saved GPRs and FPRs.  */
+/* { dg-options "-mmicromips -mabi=32 -mfpxx" } */
+
+void bar (void);
+
+void
+foo (int x)
+{
+  __builtin_unwind_init ();
+  __builtin_eh_return (x, bar);
+}
+/* { dg-final { scan-assembler "\\\$16-\\\$23" } } */
+/* { dg-final { scan-assembler "\\\$(30|fp)" } } */
+/* { dg-final { scan-assembler "\\\$f20" } } */
+/* { dg-final { scan-assembler "\\\$f22" } } */
+/* { dg-final { scan-assembler "\\\$f24" } } */
+/* { dg-final { scan-assembler "\\\$f26" } } */
+/* { dg-final { scan-assembler "\\\$f28" } } */
+/* { dg-final { scan-assembler "\\\$f30" } } */
+/* { dg-final { scan-assembler-not "\\\$f21" } } */
+/* { dg-final { scan-assembler-not "\\\$f23" } } */
+/* { dg-final { scan-assembler-not "\\\$f25" } } */
+/* { dg-final { scan-assembler-not "\\\$f27" } } */
+/* { dg-final { scan-assembler-not "\\\$f29" } } */
+/* { dg-final { scan-assembler-not "\\\$f31" } } */
diff --git a/gcc/testsuite/gcc.target/mips/call-saved-9.c b/gcc/testsuite/gcc.target/mips/call-saved-9.c
new file mode 100644 (file)
index 0000000..91ebc0b
--- /dev/null
@@ -0,0 +1,25 @@
+/* Check that we save the correct call-saved GPRs and FPRs.  */
+/* { dg-options "-mmicromips -mabi=32 -mfp64" } */
+
+void bar (void);
+
+void
+foo (int x)
+{
+  __builtin_unwind_init ();
+  __builtin_eh_return (x, bar);
+}
+/* { dg-final { scan-assembler "\\\$16-\\\$23" } } */
+/* { dg-final { scan-assembler "\\\$(30|fp)" } } */
+/* { dg-final { scan-assembler "\\\$f20" } } */
+/* { dg-final { scan-assembler "\\\$f22" } } */
+/* { dg-final { scan-assembler "\\\$f24" } } */
+/* { dg-final { scan-assembler "\\\$f26" } } */
+/* { dg-final { scan-assembler "\\\$f28" } } */
+/* { dg-final { scan-assembler "\\\$f30" } } */
+/* { dg-final { scan-assembler-not "\\\$f21" } } */
+/* { dg-final { scan-assembler-not "\\\$f23" } } */
+/* { dg-final { scan-assembler-not "\\\$f25" } } */
+/* { dg-final { scan-assembler-not "\\\$f27" } } */
+/* { dg-final { scan-assembler-not "\\\$f29" } } */
+/* { dg-final { scan-assembler-not "\\\$f31" } } */