add support for vector undef
authorChris Lattner <sabre@nondot.org>
Sun, 19 Mar 2006 06:10:09 +0000 (06:10 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Mar 2006 06:10:09 +0000 (06:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26863 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.td

index d969a3c9c126cf79e8acfad654a60b718eca6778..d1b2e1c60cf1222cacb1e1a3988f60f7cd8f0b12 100644 (file)
@@ -220,6 +220,8 @@ def IMPLICIT_DEF_F8  : Pseudo<(ops F8RC:$rD), "; $rD = IMPLICIT_DEF_F8",
                               [(set F8RC:$rD, (undef))]>;
 def IMPLICIT_DEF_F4  : Pseudo<(ops F4RC:$rD), "; $rD = IMPLICIT_DEF_F4",
                               [(set F4RC:$rD, (undef))]>;
+def IMPLICIT_DEF_VRRC : Pseudo<(ops VRRC:$rD), "; $rD = IMPLICIT_DEF_VRRC",
+                               [(set VRRC:$rD, (v4f32 (undef)))]>;
 
 // SELECT_CC_* - Used to implement the SELECT_CC DAG operation.  Expanded by the
 // scheduler into a branch sequence.
@@ -1148,6 +1150,8 @@ def : Pat<(v4i32 (load xoaddr:$src)),
 def : Pat<(store (v4i32 VRRC:$rS), xoaddr:$dst),
           (STVX (v4i32 VRRC:$rS), xoaddr:$dst)>;
 
+def : Pat<(v4i32 (undef)), (v4i32 (IMPLICIT_DEF_VRRC))>;
+
 
 // Same as above, but using a temporary. FIXME: implement temporaries :)
 /*