]> granicus.if.org Git - llvm/commit
Merging r281403:
authorPawel Bylica <chfast@gmail.com>
Mon, 28 Nov 2016 22:41:59 +0000 (22:41 +0000)
committerPawel Bylica <chfast@gmail.com>
Mon, 28 Nov 2016 22:41:59 +0000 (22:41 +0000)
commit9b2f9c4eed6a3e86557902ced7d70ae27e617149
tree3a2f34154d0b8d1e98a99eb153b0206e9ec581f6
parentf92d91a710f48a26e44451f18f0081b6af0670b7
Merging r281403:
------------------------------------------------------------------------
r281403 | chfast | 2016-09-13 23:55:41 +0200 (wto, 13 wrz 2016) | 9 lines

[CodeGen] Fix invalid shift in mul expansion

Summary: When expanding mul in type legalization make sure the type for
shift amount can actually fit the value.
This fixes PR30354 https://llvm.org/bugs/show_bug.cgi?id=30354.

Reviewers: hfinkel, majnemer, RKSimon

Subscribers: RKSimon, llvm-commits

Differential Revision: https://reviews.llvm.org/D24478

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@288085 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/X86/mul-i1024.ll [new file with mode: 0644]
test/CodeGen/X86/mul-i512.ll [new file with mode: 0644]