Readback CA in XER.

This commit is contained in:
Ben Vanik 2015-12-30 10:19:52 -08:00
parent 3800e300d4
commit c296d581cf
1 changed files with 3 additions and 2 deletions

View File

@ -393,8 +393,9 @@ void PPCHIRBuilder::StoreFPSCR(Value* value) {
}
Value* PPCHIRBuilder::LoadXER() {
assert_always();
return NULL;
Value* v = Shl(ZeroExtend(LoadCA(), INT64_TYPE), 29);
// TODO(benvanik): construct with other flags; overflow, etc?
return v;
}
void PPCHIRBuilder::StoreXER(Value* value) { assert_always(); }