[PowerPC] Fix v2f64 vector extract and related patterns
authorHal Finkel <hfinkel@anl.gov>
Thu, 27 Mar 2014 22:22:48 +0000 (22:22 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 27 Mar 2014 22:22:48 +0000 (22:22 +0000)
commit6bdc4ebedd16bc2102edc4bfbc63c76c7c130ef0
treee8331809bc0c239253703bf7abe9a722d5ab82eb
parent72f0f26d3b595d76d86f886d01caf8d9cad13bd4
[PowerPC] Fix v2f64 vector extract and related patterns

First, v2f64 vector extract had not been declared legal (and so the existing
patterns were not being used). Second, the patterns for that, and for
scalar_to_vector, should really be a regclass copy, not a subregister
operation, because the VSX registers directly hold both the vector and scalar data.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204971 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstrVSX.td
test/CodeGen/PowerPC/vsx.ll