Fixing disasm of subfic, fixing neg->not, fixing tests to use 8bits.

This commit is contained in:
Ben Vanik
2013-05-24 23:03:35 -07:00
parent 6320ef6b7e
commit ef3bd6cc53
3 changed files with 10 additions and 10 deletions

View File

@@ -80,7 +80,7 @@ int XeEmitBranchTo(
if (condition) {
// Fast test -- if condition passed then jump to target.
// TODO(benvanik): need to spill here? somehow?
c.test(*condition, *condition);
c.test((*condition).r8(), (*condition).r8());
c.jnz(target_label);
} else {
// TODO(benvanik): need to spill here?
@@ -95,7 +95,7 @@ int XeEmitBranchTo(
if (condition) {
// TODO(benvanik): add debug info for this?
post_jump_label = c.newLabel();
c.test(*condition, *condition);
c.test((*condition).r8(), (*condition).r8());
// TODO(benvanik): experiment with various hints?
c.jz(post_jump_label, kCondHintNone);
}