cr* operations.

This commit is contained in:
Ben Vanik
2014-08-05 14:59:48 -07:00
parent 75eb87f33d
commit f668dcd56b
3 changed files with 53 additions and 16 deletions

View File

@@ -230,6 +230,10 @@ void PPCHIRBuilder::StoreCR(uint32_t n, Value* value) {
assert_always();
}
void PPCHIRBuilder::StoreCRField(uint32_t n, uint32_t bit, Value* value) {
StoreContext(offsetof(PPCContext, cr0) + (4 * n) + bit, value);
}
void PPCHIRBuilder::UpdateCR(uint32_t n, Value* lhs, bool is_signed) {
UpdateCR(n, lhs, LoadZero(lhs->type), is_signed);
}