diff options
author | Weining Lu <luweining@loongson.cn> | 2022-07-06 17:46:10 +0800 |
---|---|---|
committer | Weining Lu <luweining@loongson.cn> | 2022-07-06 17:54:57 +0800 |
commit | d29215790f0ff1ef9772c38ffe59e42fa9450db0 (patch) | |
tree | 4ad70ac3625762a7e271fad14869c95ec6870d2d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | cfb2b2292f734823044de6e252f3f1c7005e0090 (diff) | |
download | llvm-d29215790f0ff1ef9772c38ffe59e42fa9450db0.zip llvm-d29215790f0ff1ef9772c38ffe59e42fa9450db0.tar.gz llvm-d29215790f0ff1ef9772c38ffe59e42fa9450db0.tar.bz2 |
[LoongArch] Add codegen support for division operations
These operations include sdiv/udiv/srem/urem.
As the ISA [https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#_div_wudu_mod_wudu]
described, when the divisor is 0, the result can be any value, but no
exception will be triggered. Unlike gcc, which by default emit code
that checks divide-by-zero after the division or modulus instruction,
we only emit this check when the `-loongarch-check-zero-division`
option is passed.
Differential Revision: https://reviews.llvm.org/D128572
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions