[llvm-dev] How to handle UMULO?

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Wed Feb 28 05:31:38 PST 2018


Hi All,

  While compiling libgcc, I find I have to deal with UMULO (overflow-aware
unsigned multiplication) SDNode. UMULO returns the result of
multiplication, and a boolean indicating overflow occurred or not. Our
target's multiply instruction doesn't care (detect) overflow. I am
wondering if I can always set the boolean to false. I am not sure about
this as I see AArch64 [1] seems trying to emulate the overflow behavior.

  Thanks.

[1]
https://github.com/llvm-mirror/llvm/blob/master/lib/Target/AArch64/AArch64ISelLowering.cpp

​Regards,
chenwj​

-- 
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180228/a45f4ba0/attachment.html>


More information about the llvm-dev mailing list