Files
clang-p2996/llvm/test/CodeGen/Mips
Nick Desaulniers 6860b136b9 [MipsISelLowering] avoid emitting libcalls to __multi3
Similar to D108842 and D108844.

__has_builtin(builtin_mul_overflow) returns true for 32b MIPS targets,
but Clang is deferring to compiler RT when encountering long long types.
This breaks MIPS malta_defconfig builds of the Linux kernel that are
using __builtin_mul_overflow with these types for these targets.

If the semantics of __has_builtin mean "the compiler resolves these,
always" then we shouldn't conditionally emit a libcall.

This will still need to be worked around in the Linux kernel in order to
continue to support malta_defconfig builds of the Linux kernel for this
target with older releases of clang.

Link: https://bugs.llvm.org/show_bug.cgi?id=28629
Link: https://github.com/ClangBuiltLinux/linux/issues/1438

Reviewed By: rengolin

Differential Revision: https://reviews.llvm.org/D108926
2021-09-02 10:41:37 -07:00
..
2011-08-12 18:12:06 +00:00
2018-07-23 23:19:53 +00:00
2019-01-28 14:59:30 +00:00
2012-03-29 18:43:11 +00:00
2011-12-19 20:24:28 +00:00
2012-06-27 00:40:34 +00:00
2013-07-26 20:58:55 +00:00
2011-05-25 23:30:30 +00:00