drcbex64: fix compile on Apple GCC (no whatsnew)

This commit is contained in:
R. Belmont 2011-02-05 18:07:18 +00:00
parent 3ec54f4216
commit 3361ca5199

View File

@ -1265,7 +1265,7 @@ void drcbe_x64::emit_or_r32_p32(x86code *&dst, UINT8 reg, const be_parameter &pa
if (inst.flags() == 0 && (UINT32)param.immediate() == 0) if (inst.flags() == 0 && (UINT32)param.immediate() == 0)
;// skip ;// skip
else if (inst.flags() == 0 && (UINT32)param.immediate() == 0xffffffff) else if (inst.flags() == 0 && (UINT32)param.immediate() == 0xffffffff)
emit_mov_r32_imm(dst, reg, -1); // mov reg,-1 emit_mov_r32_imm(dst, reg, 0xffffffff); // mov reg,-1
else else
emit_or_r32_imm(dst, reg, param.immediate()); // or reg,param emit_or_r32_imm(dst, reg, param.immediate()); // or reg,param
} }
@ -1288,7 +1288,7 @@ void drcbe_x64::emit_or_m32_p32(x86code *&dst, x86_memref memref, const be_param
if (inst.flags() == 0 && (UINT32)param.immediate() == 0) if (inst.flags() == 0 && (UINT32)param.immediate() == 0)
;// skip ;// skip
else if (inst.flags() == 0 && (UINT32)param.immediate() == 0xffffffff) else if (inst.flags() == 0 && (UINT32)param.immediate() == 0xffffffff)
emit_mov_m32_imm(dst, memref, -1); // mov [dest],-1 emit_mov_m32_imm(dst, memref, 0xffffffff); // mov [dest],-1
else else
emit_or_m32_imm(dst, memref, param.immediate()); // or [dest],param emit_or_m32_imm(dst, memref, param.immediate()); // or [dest],param
} }