Fixing comparisons and disabling OutputDebugString logging.
This commit is contained in:
parent
2d01dced5a
commit
9ed911cdad
|
@ -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]
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue