Fix Regression/CodeGen/PowerPC/2005-01-14-UndefLong.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19557 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPC32ISelSimple.cpp b/lib/Target/PowerPC/PPC32ISelSimple.cpp
index bad0fb1..79b3c1b 100644
--- a/lib/Target/PowerPC/PPC32ISelSimple.cpp
+++ b/lib/Target/PowerPC/PPC32ISelSimple.cpp
@@ -612,6 +612,8 @@
                                        Constant *C, unsigned R) {
   if (isa<UndefValue>(C)) {
     BuildMI(*MBB, IP, PPC::IMPLICIT_DEF, 0, R);
+    if (getClass(C->getType()) == cLong)
+      BuildMI(*MBB, IP, PPC::IMPLICIT_DEF, 0, R+1);
     return;
   }
   if (C->getType()->isIntegral()) {