[PATCH] D35500: [Sparc] Added software multiplication/division feature

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 07:25:41 PDT 2017


jyknight accepted this revision.
jyknight added a comment.
This revision is now accepted and ready to land.

In https://reviews.llvm.org/D35500#812905, @jacob_hansen wrote:

> I assume the .mul/.sdiv/.udiv routines must be provided by linking to libgcc or glibc?


Yes, libgcc provides ".umul", ".udiv", ".div", ".urem", and ".rem" functions.



================
Comment at: lib/Target/Sparc/SparcSubtarget.h:35
   virtual void anchor();
+  bool UseSoftMul;
   bool IsV9;
----------------
I'd suggest "UseSoftMulDiv", instead, since it affects both. Here and everywhere.


https://reviews.llvm.org/D35500





More information about the llvm-commits mailing list