Plug in the byte and short splats
authorChris Lattner <sabre@nondot.org>
Tue, 4 Apr 2006 00:05:13 +0000 (00:05 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 4 Apr 2006 00:05:13 +0000 (00:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27387 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrAltivec.td

index 9d559b366586ad18d0467f77bff94b6e5ba7a26b..bef06939ea5b5343ae3596698d6d9f44fc7ac890 100644 (file)
@@ -293,10 +293,12 @@ def VSLW   : VX1_Int< 388, "vslw", int_ppc_altivec_vslw>;
 
 def VSPLTB : VXForm_1<524, (ops VRRC:$vD, u5imm:$UIMM, VRRC:$vB),
                       "vspltb $vD, $vB, $UIMM", VecPerm,
-                      []>;
+                      [(set VRRC:$vD, (vector_shuffle (v16i8 VRRC:$vB), (undef),
+                                      VSPLT_shuffle_mask:$UIMM))]>;
 def VSPLTH : VXForm_1<588, (ops VRRC:$vD, u5imm:$UIMM, VRRC:$vB),
                       "vsplth $vD, $vB, $UIMM", VecPerm,
-                      []>;
+                      [(set VRRC:$vD, (vector_shuffle (v8i16 VRRC:$vB), (undef),
+                                      VSPLT_shuffle_mask:$UIMM))]>;
 def VSPLTW : VXForm_1<652, (ops VRRC:$vD, u5imm:$UIMM, VRRC:$vB),
                       "vspltw $vD, $vB, $UIMM", VecPerm,
                       [(set VRRC:$vD, (vector_shuffle (v4f32 VRRC:$vB), (undef),