[ARM] When generating a vpaddl node the input lane type is not always the type of the
authorSilviu Baranga <silviu.baranga@arm.com>
Thu, 3 Apr 2014 10:44:27 +0000 (10:44 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Thu, 3 Apr 2014 10:44:27 +0000 (10:44 +0000)
commit3f11cd0d25971e2f8231a74a27339146d786644d
tree0d3ab40b98d8d9214101abe89aa9fbdab85ee5bb
parent10914379f6ba2c2387afac2124737d313d7a6211
[ARM] When generating a vpaddl node the input lane type is not always the type of the
add operation since extract_vector_elt can perform an extend operation. Get the input lane
type from the vector on which we're performing the vpaddl operation on and extend or
truncate it to the output type of the original add node.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205523 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/vpadd.ll