spu syntax

Alan Modra amodra@bigpond.net.au
Fri Nov 24 04:28:00 GMT 2006


On Fri, Nov 24, 2006 at 01:40:27PM +1100, Ben Elliston wrote:
> .text
>         eqv     $3,$4,$3
> 
> I get:
>   xorn.s:2: Error: junk at end of line, first unrecognized character is `,'

	* config/tc-spu.c (md_pseudo_table): Add eqv and .eqv.

Index: gas/config/tc-spu.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-spu.c,v
retrieving revision 1.2
diff -u -p -r1.2 tc-spu.c
--- gas/config/tc-spu.c	29 Oct 2006 18:18:34 -0000	1.2
+++ gas/config/tc-spu.c	24 Nov 2006 04:19:58 -0000
@@ -94,6 +94,9 @@ const pseudo_typeS md_pseudo_table[] =
   /* Force set to be treated as an instruction.  */
   {"set", NULL, 0},
   {".set", s_set, 0},
+  /* Likewise for eqv.  */
+  {"eqv", NULL, 0},
+  {".eqv", s_set, -1},
   {"file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0 }, 
   {"loc", dwarf2_directive_loc, 0}, 
   {0,0,0}

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list