]> granicus.if.org Git - llvm/commit
DAG: correctly legalize UMULO.
authorTim Northover <tnorthover@apple.com>
Tue, 20 Jun 2017 15:01:38 +0000 (15:01 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 20 Jun 2017 15:01:38 +0000 (15:01 +0000)
commitf37b0dbf162b809e389f17fa4fe7b7dd96eb1014
treeee35f799341c2121460ae6c2d8e2c1a2f9d2127a
parent46f62d55fa4bbf1970c053c2a222c1afdc7d5c92
DAG: correctly legalize UMULO.

We were incorrectly sign extending into the high word (as you would for
SMULO) when legalizing UMULO in terms of a wider full multiplication.

Patch by James Duley.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305800 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
test/CodeGen/ARM/v6m-umul-with-overflow.ll [new file with mode: 0644]