[PATCH] D102839: [RISCV][Clang] Add -mno-div option to disable hardware int division

Alex Bradbury via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 27 07:46:01 PDT 2021


asb added a comment.

In D102839#2784585 <https://reviews.llvm.org/D102839#2784585>, @kito-cheng wrote:

> Personally I prefer to deprecate `-mno-div` soon, but based on the rule for RISC-V GNU toolchain, it need to wait `Zmmul` extension frozen.
> My plan is deprecate the `-mno-div` and emit warning to tell user should use `Zmmul` instead once it frozen.

Thanks for clarifying Kito. In that case, I think having clang support -mno-div in order to match the GNU toolchain makes sense, and we can later follow GCC in deprecating it if they do. Given how long it can take to ratify extensions, I'm wary of making assumptions about when zmmul may be ratified.


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

https://reviews.llvm.org/D102839



More information about the cfe-commits mailing list