aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorWeining Lu <luweining@loongson.cn>2022-07-06 17:46:10 +0800
committerWeining Lu <luweining@loongson.cn>2022-07-06 17:54:57 +0800
commitd29215790f0ff1ef9772c38ffe59e42fa9450db0 (patch)
tree4ad70ac3625762a7e271fad14869c95ec6870d2d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentcfb2b2292f734823044de6e252f3f1c7005e0090 (diff)
downloadllvm-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