[AArch64] Fix bugs in isel lowering replaceSplatVectorStore.
authorGeoff Berry <gberry@codeaurora.org>
Fri, 11 Nov 2016 19:25:20 +0000 (19:25 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Fri, 11 Nov 2016 19:25:20 +0000 (19:25 +0000)
commit25fa4999ff8c569912070019ee5d527d96f871d2
tree2775f57f545b16e41a34a597a2a16694f3e368bb
parentec80354873dab4a4b0263724f357b022bc19880a
[AArch64] Fix bugs in isel lowering replaceSplatVectorStore.

Summary:
Fix off-by-one indexing error in loop checking that inserted value was a
splat vector.

Add code to check that INSERT_VECTOR_ELT nodes constructing the splat
vector have the expected constant index values.

Reviewers: t.p.northover, jmolloy, mcrosier

Subscribers: aemerson, llvm-commits, rengolin

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

llvm-svn: 286616
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/arm64-stp.ll