[PATCH] [mips] [IAS] Implement the .asciiz directive.

Toma Tabacu toma.tabacu at imgtec.com
Fri Mar 6 08:23:53 PST 2015


In http://reviews.llvm.org/D7530#135005, @echristo wrote:

> Documentation somewhere for .asciiz? I looked in binutils and couldn't find anything.
>
> -eric


Unfortunately, it's undocumented. I think it's a remnant from some old MIPS assemblers.

I'm actually starting to have doubts about supporting .asciiz in LLVM.

I've grepped the Linux kernel and I've found only 2 uses of .asciiz, both in MIPS assembly,
while .asciz is used a lot more, in many different architectures, including MIPS (only once, but that means it's not a compatibility issue).
FreeBSD has a few more uses of .asciiz (about 8, all of them in MIPS assembly), but .asciz still outnumbers .asciiz.

It might be worth it to try to push Linux and FreeBSD to switch to .asciz for MIPS assembly, but, on the other hand, .asciiz is not difficult to support, just a bit ugly.


http://reviews.llvm.org/D7530

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list