Support 'ret float'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14681 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2004-07-08 07:22:27 +00:00
parent d85b7a48e9
commit f9a75460ee
4 changed files with 12 additions and 0 deletions

View 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 ();

View 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 ();

View 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 ();

View 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 ();