5c: fix -0x80000000 comparsion bug

This commit is contained in:
cinap_lenrek 2013-01-02 10:10:29 +01:00
parent bf60c38720
commit da0638914f

View file

@ -1056,7 +1056,7 @@ gopcode(int o, Node *f1, Node *f2, Node *t)
nextpc();
p->as = a;
naddr(f1, &p->from);
if(a == ACMP && f1->op == OCONST && p->from.offset < 0) {
if(a == ACMP && f1->op == OCONST && p->from.offset < 0 && p->from.offset != -p->from.offset) {
p->as = ACMN;
p->from.offset = -p->from.offset;
}