Fixing comparisons and disabling OutputDebugString logging.

This commit is contained in:
Ben Vanik 2013-05-22 21:11:27 -07:00
parent 2d01dced5a
commit 9ed911cdad
2 changed files with 5 additions and 3 deletions

View File

@ -1171,8 +1171,10 @@ void LibjitEmitter::update_cr_with_cond(
rhs = make_unsigned(rhs);
}
jit_value_t c = jit_insn_lt(fn_, lhs, rhs);
c = jit_insn_or(fn_, jit_insn_gt(fn_, lhs, rhs), c);
c = jit_insn_or(fn_, jit_insn_eq(fn_, lhs, rhs), c);
c = jit_insn_or(fn_, c,
jit_insn_shl(fn_, jit_insn_gt(fn_, lhs, rhs), get_uint32(1)));
c = jit_insn_or(fn_, c,
jit_insn_shl(fn_, jit_insn_eq(fn_, lhs, rhs), get_uint32(2)));
// TODO(benvanik): set bit 4 to XER[SO]

View File

@ -45,7 +45,7 @@ void xe_log_line(const char* file_path, const uint32_t line_number,
outfmt = "XE[%c] %s:%d: %s\n";
}
#if defined(OutputDebugString)
#if 0// defined(OutputDebugString)
char full_output[kLogMax];
if (xesnprintfa(full_output, XECOUNT(buffer), outfmt, level_char,
filename, line_number, buffer) >= 0) {