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

Victor Campos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 30 05:22:53 PDT 2020


vhscampos added a comment.

Indeed, it seems that gcc allows the use of SP in inline asm.

I could do one of the three:

1. keep the SP register forbidden.
2. have the SP as one exception.
3. redo the patch to prevent only the use of the frame pointer.

Honestly I cannot come to a conclusion on which is the best option. Do you have an opinion on this?


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