mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 09:21:02 +00:00
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:
parent
d85b7a48e9
commit
f9a75460ee
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user