summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-10-09 11:12:18 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-10-09 11:12:18 +0000
commitd389657399f32dbf11a727c80a36aa351759b760 (patch)
tree741c1f91593d6d5a5fdccc637f42cb7a54ebb7e5 /llvm/lib/Target/PowerPC/PPCVSXCopy.cpp
parent62a1514ca70dfcea28c413ff55c214eb49f0a4d4 (diff)
downloadbcm5719-llvm-d389657399f32dbf11a727c80a36aa351759b760.tar.gz
bcm5719-llvm-d389657399f32dbf11a727c80a36aa351759b760.zip
Vector element extraction without stack operations on Power 8
This patch corresponds to review: http://reviews.llvm.org/D12032 This patch builds onto the patch that provided scalar to vector conversions without stack operations (D11471). Included in this patch: - Vector element extraction for all vector types with constant element number - Vector element extraction for v16i8 and v8i16 with variable element number - Removal of some unnecessary COPY_TO_REGCLASS operations that ended up unnecessarily moving things around between registers Not included in this patch (will be in upcoming patch): - Vector element extraction for v4i32, v4f32, v2i64 and v2f64 with variable element number - Vector element insertion for variable/constant element number Testing is provided for all extractions. The extractions that are not implemented yet are just placeholders. llvm-svn: 249822
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCVSXCopy.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCVSXCopy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp b/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp
index 76b681de7f4..11ee3051f98 100644
--- a/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp
+++ b/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp
@@ -128,6 +128,7 @@ protected:
IsVRReg(DstMO.getReg(), MRI) ? &PPC::VSHRCRegClass :
&PPC::VSLRCRegClass;
assert((IsF8Reg(DstMO.getReg(), MRI) ||
+ IsVSFReg(DstMO.getReg(), MRI) ||
IsVRReg(DstMO.getReg(), MRI)) &&
"Unknown destination for a VSX copy");
OpenPOWER on IntegriCloud