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)
commit48da0be8b5821dddbb5233ad9cb198369031684b
treed07c95e8b95e64a915a84fcaabf2ec4c875b1a66
parent9e36496eb39656df8894a6a1cd56f3561f6672a4
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165017 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/X86/smul-with-overflow.ll