Support 'ret float'
authorBrian Gaeke <gaeke@uiuc.edu>
Thu, 8 Jul 2004 07:22:27 +0000 (07:22 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Thu, 8 Jul 2004 07:22:27 +0000 (07:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14681 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/InstSelectSimple.cpp
lib/Target/Sparc/SparcV8ISelSimple.cpp
lib/Target/SparcV8/InstSelectSimple.cpp
lib/Target/SparcV8/SparcV8ISelSimple.cpp

index 5cf9131b1ef284831bf481b37e38bde25ec35d5d..982ac865325709c9b133c2e0d192b35943d4185d 100644 (file)
@@ -702,6 +702,9 @@ void V8ISel::visitReturnInst(ReturnInst &I) {
         // Schlep it over into i0 (where it will become o0 after restore).
         BuildMI (BB, V8::ORrr, 2, V8::I0).addReg(V8::G0).addReg(RetValReg);
         break;
+      case cFloat:
+        BuildMI (BB, V8::FMOVS, 2, V8::F0).addReg(RetValReg);
+        break;
       default:
         std::cerr << "Return instruction of this type not handled: " << I;
         abort ();
index 5cf9131b1ef284831bf481b37e38bde25ec35d5d..982ac865325709c9b133c2e0d192b35943d4185d 100644 (file)
@@ -702,6 +702,9 @@ void V8ISel::visitReturnInst(ReturnInst &I) {
         // Schlep it over into i0 (where it will become o0 after restore).
         BuildMI (BB, V8::ORrr, 2, V8::I0).addReg(V8::G0).addReg(RetValReg);
         break;
+      case cFloat:
+        BuildMI (BB, V8::FMOVS, 2, V8::F0).addReg(RetValReg);
+        break;
       default:
         std::cerr << "Return instruction of this type not handled: " << I;
         abort ();
index 5cf9131b1ef284831bf481b37e38bde25ec35d5d..982ac865325709c9b133c2e0d192b35943d4185d 100644 (file)
@@ -702,6 +702,9 @@ void V8ISel::visitReturnInst(ReturnInst &I) {
         // Schlep it over into i0 (where it will become o0 after restore).
         BuildMI (BB, V8::ORrr, 2, V8::I0).addReg(V8::G0).addReg(RetValReg);
         break;
+      case cFloat:
+        BuildMI (BB, V8::FMOVS, 2, V8::F0).addReg(RetValReg);
+        break;
       default:
         std::cerr << "Return instruction of this type not handled: " << I;
         abort ();
index 5cf9131b1ef284831bf481b37e38bde25ec35d5d..982ac865325709c9b133c2e0d192b35943d4185d 100644 (file)
@@ -702,6 +702,9 @@ void V8ISel::visitReturnInst(ReturnInst &I) {
         // Schlep it over into i0 (where it will become o0 after restore).
         BuildMI (BB, V8::ORrr, 2, V8::I0).addReg(V8::G0).addReg(RetValReg);
         break;
+      case cFloat:
+        BuildMI (BB, V8::FMOVS, 2, V8::F0).addReg(RetValReg);
+        break;
       default:
         std::cerr << "Return instruction of this type not handled: " << I;
         abort ();