Patchwork [moxie,testsuite] Fix gcc.dg/tree-ssa/asm-2.c for moxe

login
register
mail settings
Submitter Anthony Green
Date Jan. 19, 2013, 1:45 p.m.
Message ID <CACxje58-0YHzgo_DDXebTAT1vnGCxayu+rsQGXiRL9xvoD2xxA@mail.gmail.com>
Download mbox | patch
Permalink /patch/213862/
State New
Headers show

Comments

Anthony Green - Jan. 19, 2013, 1:45 p.m.
I'm going to commit this obvious fix for the moxie port.  Registers 0
and 1 are the frame and stack pointers so the assembler complains
about their usage.


2013-01-19  Anthony Green  <green@moxielogic.com>

        * gcc.dg/tree-ssa/asm-2.c (REGISTER): Pick an appropriate
register
        for moxie.

Patch

Index: gcc/testsuite/gcc.dg/tree-ssa/asm-2.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/asm-2.c       (revision 195310)
+++ gcc/testsuite/gcc.dg/tree-ssa/asm-2.c       (working copy)
@@ -4,8 +4,12 @@ 
 #ifdef __hppa__
 #define REGISTER "1"
 #else
+#ifdef __moxie__
+#define REGISTER "2"
+#else
 #define REGISTER "0"
 #endif
+#endif

 void baz(void)
 {