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

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 04:27:11 PDT 2019


peter.smith added a comment.

A colleague has pointed out to me that there is a way of using the c modifier after the % "Require a constant operand and print the constant expression with no punctuation" that works with both clang and GCC. See  https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#InputOperands in your example above it would be:

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

I still think that it could be useful to have GCC and Clang have the same behaviour for "I", but at least there is a workaround available for this case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65550/new/

https://reviews.llvm.org/D65550





More information about the llvm-commits mailing list