Fix PR13991: legalizing an overflowing multiplication operation is harder than
authorDuncan Sands <baldrick@free.fr>
Tue, 2 Oct 2012 15:03:49 +0000 (15:03 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 2 Oct 2012 15:03:49 +0000 (15:03 +0000)
commitf97cb15aeefcd018120a5d1f4dc8058e37cd0681
tree7922f8b90de5297b7e5dc30d3a38269d582fe159
parenta99c35702d24b8f1342ca73dce94103eb94f9922
Fix PR13991: legalizing an overflowing multiplication operation is harder than
the add/sub case since in the case of multiplication you also have to check that
the operation in the larger type did not overflow.

llvm-svn: 165017
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/test/CodeGen/X86/smul-with-overflow.ll