[llvm-dev] How to define data for X86 assembler?

Jun Koi via llvm-dev llvm-dev at lists.llvm.org
Wed Feb 17 18:05:49 PST 2016


On Thu, Feb 18, 2016 at 2:33 AM, Tamazov, Artem <Artem.Tamazov at amd.com>
wrote:

> You can good examples in llvm/test/MC/AsmParser.
>
> I guess .ascii directive should do the job for you.
>

Oh, that is .string. Thanks for the pointer, Artem!



> --artem//
>
>
>
> *From:* llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] *On Behalf Of *Jun
> Koi via llvm-dev
> *Sent:* 17 February, 2016 19:18
> *To:* llvm-dev at lists.llvm.org
> *Subject:* [llvm-dev] How to define data for X86 assembler?
>
>
>
> Hi,
>
> Is there any documentation on the syntax accepted by X86 assembler?
>
> I have this code in my .asm file to define data:
>
>     text db "127.1.1.1 google.lk"
>
> But X86 assembler fails to understand it, with error:
>
>     error: unexpected token in argument list
>     text db "127.1.1.1 google.lk"
>
>                 ^
>
>
>
> Any ideas how to fix this problem?
>
> I tried to find some documentation on the syntax for X86 assembler, to no
> avail.
>
> Thank you,
>
> Jun
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160218/cb026906/attachment.html>


More information about the llvm-dev mailing list