]> granicus.if.org Git - llvm/commit
Integer legalization: fix MUL expansion
authorPawel Bylica <chfast@gmail.com>
Tue, 15 Nov 2016 18:29:24 +0000 (18:29 +0000)
committerPawel Bylica <chfast@gmail.com>
Tue, 15 Nov 2016 18:29:24 +0000 (18:29 +0000)
commit93f763c0e24e57a11c8243cd685523ff1fa5b677
tree0dd820c8b3d8efb4a3a2bd4d98e51181cd16a32d
parent34888b1f1a8fb9ed2372feab3f6d4ce2c6eaaa4a
Integer legalization: fix MUL expansion

Summary:
This fixes the runtime results produces by the fallback multiplication expansion introduced in r270720.

For tests I created a fuzz tester that compares the results with Boost.Multiprecision.

Reviewers: hfinkel

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/X86/mul-i1024.ll
test/CodeGen/X86/mul-i256.ll
test/CodeGen/X86/mul-i512.ll