[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)
commitc363deb575019c6cb28a6d1c92826e36ea8bb07c
tree4b366be2d2acfb3348c80e6ee01519a3157cc883
parentca6f4522992970964ae4dbb0465a2b191e2ac60e
[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

llvm-svn: 371370
llvm/lib/Target/ARM/ARMParallelDSP.cpp
llvm/test/CodeGen/ARM/ParallelDSP/blocks.ll
llvm/test/CodeGen/ARM/ParallelDSP/sext-acc.ll [new file with mode: 0644]