re PR rtl-optimization/60651 (Mode switching instructions are sometimes emitted in...
authorJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 11 Apr 2014 18:27:45 +0000 (19:27 +0100)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 11 Apr 2014 18:27:45 +0000 (19:27 +0100)
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 [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/epiphany/mode-switch.c b/gcc/testsuite/gcc.target/epiphany/mode-switch.c
new file mode 100644 (file)
index 0000000..d7f80a9
--- /dev/null
@@ -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;
+}