summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-06-11 06:21:25 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-06-11 06:21:25 +0000
commitea1db8a697c3454a32a4d0c2947b030421c86aa2 (patch)
tree1e7b253538b8616e682d5a838d7dea9dabc50365 /llvm/lib
parent00be6d0ff86a5328c13f3f88171b26097c8ed664 (diff)
downloadbcm5719-llvm-ea1db8a697c3454a32a4d0c2947b030421c86aa2.tar.gz
bcm5719-llvm-ea1db8a697c3454a32a4d0c2947b030421c86aa2.zip
LLVM support for vector quad bit permute and gather instructions through builtins
This patch corresponds to review: http://reviews.llvm.org/D10096 This is the back end portion of the patch related to D10095. The patch adds the instructions and back end intrinsics for: vbpermq vgbbd llvm-svn: 239505
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrAltivec.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrAltivec.td b/llvm/lib/Target/PowerPC/PPCInstrAltivec.td
index e27bf7f5c0e..9ff604bbee9 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrAltivec.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrAltivec.td
@@ -1142,7 +1142,9 @@ def:Pat<(vpkudum_unary_shuffle v16i8:$vA, undef),
def:Pat<(vpkudum_swapped_shuffle v16i8:$vA, v16i8:$vB),
(VPKUDUM $vB, $vA)>;
-
+def VGBBD : VX2_Int_Ty2<1292, "vgbbd", int_ppc_altivec_vgbbd, v16i8, v16i8>;
+def VBPERMQ : VX1_Int_Ty2<1356, "vbpermq", int_ppc_altivec_vbpermq,
+ v2i64, v16i8>;
} // end HasP8Altivec
// Crypto instructions (from builtins)
OpenPOWER on IntegriCloud