summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-09-29 03:27:30 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-09-29 03:27:30 +0000
commit069bb989e49642ad90b6dc5d957b8db4afd1076a (patch)
treefba3e79f8415c880d5406adc85bdea57db548fd3 /llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp
parentda371d9cf374266a13a9837a282ff76bdcf06aec (diff)
downloadbcm5719-llvm-069bb989e49642ad90b6dc5d957b8db4afd1076a.tar.gz
bcm5719-llvm-069bb989e49642ad90b6dc5d957b8db4afd1076a.zip
Use FpMOVD pseudo-instruction to move doubles around.
llvm-svn: 16575
Diffstat (limited to 'llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp b/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp
index efd851f36f2..9b3c68b8fe7 100644
--- a/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp
+++ b/llvm/lib/Target/SparcV8/SparcV8RegisterInfo.cpp
@@ -68,6 +68,8 @@ void SparcV8RegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
BuildMI (MBB, I, V8::ORrr, 2, DestReg).addReg (V8::G0).addReg (SrcReg);
else if (RC == SparcV8::FPRegsRegisterClass)
BuildMI (MBB, I, V8::FMOVS, 1, DestReg).addReg (SrcReg);
+ else if (RC == SparcV8::DFPRegsRegisterClass)
+ BuildMI (MBB, I, V8::FpMOVD, 1, DestReg).addReg (SrcReg);
else
assert (0 && "Can't copy this register");
}
OpenPOWER on IntegriCloud