diff --git a/compiler/mips/cgcpu.pas b/compiler/mips/cgcpu.pas index 111100edcb..c45ab23cd7 100644 --- a/compiler/mips/cgcpu.pas +++ b/compiler/mips/cgcpu.pas @@ -1057,7 +1057,8 @@ var begin case Op of OP_NEG: - list.concat(taicpu.op_reg_reg(A_NEG, dst, src)); + { discard overflow checking } + list.concat(taicpu.op_reg_reg(A_NEGU{A_NEG}, dst, src)); OP_NOT: begin list.concat(taicpu.op_reg_reg(A_NOT, dst, src));