diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-08 07:22:27 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-08 07:22:27 +0000 |
commit | f9a75460eee24c82a8d38e29d73ffc27cf360b05 (patch) | |
tree | 05ad690db3592180729f77b72d9d68e5383f5664 /lib/Target/SparcV8/InstSelectSimple.cpp | |
parent | d85b7a48e99f0f76ddf5762111a3e0efd3615b6d (diff) |
Support 'ret float'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV8/InstSelectSimple.cpp')
-rw-r--r-- | lib/Target/SparcV8/InstSelectSimple.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/SparcV8/InstSelectSimple.cpp b/lib/Target/SparcV8/InstSelectSimple.cpp index 5cf9131b1e..982ac86532 100644 --- a/lib/Target/SparcV8/InstSelectSimple.cpp +++ b/lib/Target/SparcV8/InstSelectSimple.cpp @@ -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 (); |