[llvm-commits] [llvm] r70749 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sun May 3 06:13:51 PDT 2009
Author: asl
Date: Sun May 3 08:13:51 2009
New Revision: 70749
URL: http://llvm.org/viewvc/llvm-project?rev=70749&view=rev
Log:
Add libcall expansion for 16 and 128 bit muls
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=70749&r1=70748&r2=70749&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sun May 3 08:13:51 2009
@@ -3315,10 +3315,14 @@
}
break;
case ISD::MUL:
+ if (VT == MVT::i16)
+ LC = RTLIB::MUL_I16;
if (VT == MVT::i32)
LC = RTLIB::MUL_I32;
else if (VT == MVT::i64)
LC = RTLIB::MUL_I64;
+ else if (VT == MVT::i128)
+ LC = RTLIB::MUL_I128;
break;
case ISD::FPOW:
LC = GetFPLibCall(VT, RTLIB::POW_F32, RTLIB::POW_F64, RTLIB::POW_F80,
More information about the llvm-commits
mailing list