[PATCH] D76848: [CodeGen][ARM] Error when writing to specific reserved registers in inline asm

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 15:50:04 PDT 2020


efriedma added a comment.

> But r7 was not an output, it's an input. We didn't write to it; we read from it. Regardless of frame pointers, aren't we still producing an error about writing to a register that we did not write to?

An inline asm itself doesn't write to its inputs, but the compiler does.  The compiler has to write the value of each input to the named location before the inline asm executes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76848





More information about the llvm-commits mailing list