This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH, MIPS] Fix restoration of hi/lo in MIPS64R2 interrupt handlers
- From: Robert Suchanek <Robert dot Suchanek at imgtec dot com>
- To: "Moore, Catherine" <Catherine_Moore at mentor dot com>, Matthew Fortune <Matthew dot Fortune at imgtec dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 14 Jul 2015 15:19:22 +0000
- Subject: RE: [PATCH, MIPS] Fix restoration of hi/lo in MIPS64R2 interrupt handlers
- Authentication-results: sourceware.org; auth=none
- References: <B5E67142681B53468FAF6B7C31356562441AA207 at hhmail02 dot hh dot imgtec dot org> <FD3DCEAC5B03E9408544A1E416F112420192C89882 at NA-MBX-04 dot mgc dot mentorg dot com>
Hi Catherine,
> Hi Robert,
> The patch is OK, but will you please name the test something other than the
> date?
OK. I'll change it to interrupt_handler-5.c, add a comment and commit after
approval for the new interrupt handler options.
Regards,
Robert
diff --git a/gcc/testsuite/gcc.target/mips/interrupt_handler-5.c b/gcc/testsuite/gcc.target/mips/interrupt_handler-5.c
new file mode 100644
index 0000000..6419479
--- /dev/null
+++ b/gcc/testsuite/gcc.target/mips/interrupt_handler-5.c
@@ -0,0 +1,8 @@
+/* Test the interrupt handler with an accumulator. */
+/* { dg-do assemble } */
+/* { dg-options "-mips64r2" } */
+_Accum a;
+__attribute__((interrupt))
+void foo () {
+ a = a*a;
+}
--
2.2.2