[PATCH] D65550: [AArch64] Do not emit '#' before immediates in inline asm

Pirama Arumuga Nainar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 17:45:06 PDT 2019


pirama created this revision.
pirama added reviewers: peter.smith, kristof.beyls.
Herald added subscribers: hiraditya, javed.absar.
Herald added a project: LLVM.

The A64 assembly language does not require the '#' character to
introduce constant immediate operands.  Avoid the '#' since the AArch64
asm parser does not accept '#' before the lane specifier and rejects the
following:

  __asm__ ("fmla v2.4s, v0.4s, v1.s[%0]" :: "I"(0x1))

Fix a test to not expect the '#' and add a new test case with the above
asm.

Fixes: https://github.com/android-ndk/ndk/issues/1036


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65550

Files:
  llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
  llvm/test/CodeGen/AArch64/arm64-inline-asm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65550.212708.patch
Type: text/x-patch
Size: 4483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190801/5ee04a20/attachment.bin>


More information about the llvm-commits mailing list