diff mbox

[MIPS] Fix restoration of hi/lo in MIPS64R2 interrupt handlers

Message ID B5E67142681B53468FAF6B7C31356562441AB31D@hhmail02.hh.imgtec.org
State New
Headers show

Commit Message

Robert Suchanek July 14, 2015, 3:19 p.m. UTC
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

Comments

Matthew Fortune July 14, 2015, 4:01 p.m. UTC | #1
Robert Suchanek <Robert.Suchanek@imgtec.com> writes:
> > 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.

I believe this change is independent of the new attributes so feel free to commit
it before.

Thanks,
Matthew
Robert Suchanek July 15, 2015, 11:52 a.m. UTC | #2
Hi,

> > OK. I'll change it to interrupt_handler-5.c, add a comment and commit after
> > approval for the new interrupt handler options.
> 
> I believe this change is independent of the new attributes so feel free to
> commit
> it before.

I was to going to commit it before but by the time I did that, I got approval for
all patches and committed in order.

Committed as r225820.

Regards,
Robert
diff mbox

Patch

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;
+}