]> granicus.if.org Git - llvm/commit
[ARM][ParallelDSP] Fix for sext input
authorSam Parker <sam.parker@arm.com>
Mon, 9 Sep 2019 08:39:14 +0000 (08:39 +0000)
committerSam Parker <sam.parker@arm.com>
Mon, 9 Sep 2019 08:39:14 +0000 (08:39 +0000)
commit7682549c72c442a71e21961c0419988b0205bb9b
treecf785742bd04f5a9f81aa88fa3efc6510705eca5
parentb372aaa2b4ea87df98c47815c89d0f194a909971
[ARM][ParallelDSP] Fix for sext input

The incoming accumulator value can be discovered through a sext, in
which case there will be a mismatch between the input and the result.
So sign extend the accumulator input if we're performing a 64-bit mac.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371370 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMParallelDSP.cpp
test/CodeGen/ARM/ParallelDSP/blocks.ll
test/CodeGen/ARM/ParallelDSP/sext-acc.ll [new file with mode: 0644]