[SparcISelLowering] avoid emitting libcalls to __muloti4 and __mulodi4
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 29 Oct 2021 20:14:02 +0000 (13:14 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Fri, 29 Oct 2021 20:14:09 +0000 (13:14 -0700)
commit39e5dd113f5c00de21f8071142fccbb5e08025e7
treedc4f0952b932d12f407c548b46c9aa0f0957f2b6
parent03eddbc714116eb7748eae66d61197db1f2ad7c4
[SparcISelLowering] avoid emitting libcalls to __muloti4 and __mulodi4

These compiler-rt-only symbols aren't available in libgcc.  Similar to
D108842, D108844, and D108926.

Fixes: pr/52043

Reviewed By: craig.topper, rengolin

Differential Revision: https://reviews.llvm.org/D112750
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/test/CodeGen/SPARC/overflow-intrinsic-optimizations.ll [new file with mode: 0644]