[LLVMdev] Sparc assembly syntax

Dale Johannesen dalej at apple.com
Thu Jul 31 09:57:13 PDT 2008


On Jul 31, 2008, at 4:52 AMPDT, Richard Pennington wrote:

> Any code that I generate for the Sparc fails at assembly time using a
> gas assembler built for the Sparc.
>
> I get code like the following from the code generator:
>
>         save -96, %o6, %o6
>
> and get a syntax error on the save instruction.
>
> I think sparc syntax should be:
>
> main:
>         save %o6, -96, %o6
>
> Is that correct? Should I file a bug report?

         save %o6, -96, %o6

is the usual syntax for Sparc assemblers.  But this instruction is so  
fundamental nothing could ever have worked if it's broken, so there  
may be something deeper going on.





More information about the llvm-dev mailing list