[LLVMdev] Sparc assembly syntax

Richard Pennington rich at pennware.com
Thu Jul 31 04:52:16 PDT 2008


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:
         .text
         .align  16
         .globl  main
         .type   main, #function
main:
         save -96, %o6, %o6

and get a syntax error on the save instruction.

I think sparc syntax should be:

         .text
         .align  16
         .globl  main
         .type   main, #function
main:
         save %o6, -96, %o6

Is that correct? Should I file a bug report?

-Rich



More information about the llvm-dev mailing list