summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-14 20:22:02 +0000
committerChris Lattner <sabre@nondot.org>2005-01-14 20:22:02 +0000
commitd7bffad559c5babb9308977c61066a5797e26471 (patch)
treefb2fed705a5255d9d9468a6dc58956f72ec65f7a /llvm/lib
parent8025e8b9e624bdfba405467f8f9220abd96ae006 (diff)
downloadbcm5719-llvm-d7bffad559c5babb9308977c61066a5797e26471.tar.gz
bcm5719-llvm-d7bffad559c5babb9308977c61066a5797e26471.zip
Fix Regression/CodeGen/PowerPC/2005-01-14-UndefLong.ll
llvm-svn: 19557
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
index bad0fb1b408..79b3c1bd36d 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
@@ -612,6 +612,8 @@ void PPC32ISel::copyConstantToRegister(MachineBasicBlock *MBB,
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()) {
OpenPOWER on IntegriCloud