Merge branch 'chris_cpu_changes' of https://github.com/Gliniak/xenia.git into canary_experimental

This commit is contained in:
Gliniak
2022-06-17 14:04:58 +02:00
7 changed files with 243 additions and 49 deletions

View File

@@ -720,7 +720,14 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder, bool& result) {
result = true;
}
break;
// TODO(benvanik): ROTATE_LEFT
case OPCODE_ROTATE_LEFT:
if (i->src1.value->IsConstant() && i->src2.value->IsConstant()) {
v->set_from(i->src1.value);
v->RotateLeft(i->src2.value);
i->Remove();
result = true;
}
break;
case OPCODE_BYTE_SWAP:
if (i->src1.value->IsConstant()) {
v->set_from(i->src1.value);