[PATCH] D48915: [Sparc] Use the names .rem and .urem instead of __modsi3 and __umodsi3

Daniel Cederman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 5 00:00:58 PDT 2018


dcederman added a comment.

In https://reviews.llvm.org/D48915#1152644, @joerg wrote:

> That would be the milli code version, wouldn't it?


It is an implementation of the modulo operation that does not use the div or mul instructions. That way it can also work on a Sparc V7 system which lacks those instructions. It uses normal instructions, so it is not millicode the way I understand the term.

Currently programs compiled for Sparc V7 does not link when using the modulo operator as it looks for the __modsi3 symbol instead of .rem.


Repository:
  rL LLVM

https://reviews.llvm.org/D48915





More information about the llvm-commits mailing list