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

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 13:36:27 PDT 2020


nickdesaulniers added a comment.

In D76848#2008031 <https://reviews.llvm.org/D76848#2008031>, @manojgupta wrote:

> @vhscampos  This change is more restrictive than GCC. e.g. https://godbolt.org/z/wP8_ic where clang errors out but GCC does not error out.




In D76848#2008147 <https://reviews.llvm.org/D76848#2008147>, @vhscampos wrote:

> This change isn't more restrictive than GCC. In your example, the difference is being caused by gcc seemingly adding -fomit-frame-pointer, whereas Clang does not.


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?


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