[PATCH] D69876: Allow output constraints on "asm goto"

Bill Wendling via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 20 12:34:52 PST 2019


void marked an inline comment as done.
void added inline comments.


================
Comment at: clang/test/CodeGen/asm-goto.c:91
+  return 1;
+}
----------------
nickdesaulniers wrote:
> Thanks for adding this test.  I think it doesn't test that `addr` is *clobbered* though?
The `+` modifier indicates that `addr` is used for both input and output, in effect being clobbered. Otherwise, we would need to add a "clobber" list, but from what I understand that seems to be restricted to registers, memory, and `cc`. I wouldn't be able to specify a specific register for `addr` (e.g. `"+D"(addr)`) and also have `%rdx` in the clobber list.

Was there something else you were thinking of?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69876





More information about the cfe-commits mailing list