From 2a55e33d2587f7da8f3b20f69178f2300ce47369 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Fri, 11 Apr 2014 19:27:45 +0100 Subject: [PATCH] re PR rtl-optimization/60651 (Mode switching instructions are sometimes emitted in the wrong order) gcc/testsuite: PR rtl-optimization/60651 * gcc.target/epiphany/mode-switch.c: New test. From-SVN: r209318 --- gcc/testsuite/gcc.target/epiphany/mode-switch.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/gcc.target/epiphany/mode-switch.c diff --git a/gcc/testsuite/gcc.target/epiphany/mode-switch.c b/gcc/testsuite/gcc.target/epiphany/mode-switch.c new file mode 100644 index 0000000..d7f80a9 --- /dev/null +++ b/gcc/testsuite/gcc.target/epiphany/mode-switch.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ +/* { dg-final { scan-assembler "#-917506" } } */ +/* PR 60651 */ + +int a; +int c; + +void __attribute__((interrupt)) +misc_handler (void) { + a*= c; +} -- 2.7.4