Adding implicit branches to ensure flow control remains legit.

This commit is contained in:
Ben Vanik
2013-12-26 19:00:52 -08:00
parent aa021d22dd
commit 7002a3bd57
4 changed files with 71 additions and 10 deletions

View File

@@ -407,7 +407,7 @@ int InstrEmit_fcmpx_(PPCFunctionBuilder& f, InstrData& i, bool ordered) {
// TODO(benvanik): update VXSNAN
const uint32_t crf = i.X.RT >> 2;
// f.UpdateFPRF(v);
f.UpdateCR(crf, f.LoadFPR(i.X.RA), f.LoadFPR(i.X.RB), true);
f.UpdateCR(crf, f.LoadFPR(i.X.RA), f.LoadFPR(i.X.RB), false);
return 0;
}
XEEMITTER(fcmpo, 0xFC000040, X )(PPCFunctionBuilder& f, InstrData& i) {

View File

@@ -138,7 +138,7 @@ int PPCFunctionBuilder::Emit(FunctionInfo* symbol_info) {
}
}
return 0;
return Finalize();
}
void PPCFunctionBuilder::AnnotateLabel(uint64_t address, Label* label) {