Fix various errors uncovered by static analysis

Reported-by: Carlos Montiers <cmontiers@gmail.com>
This commit is contained in:
Thomas Preud'homme
2014-03-08 18:36:02 +08:00
parent ba286136bf
commit fdb3b10d06
4 changed files with 2 additions and 5 deletions

View File

@ -501,7 +501,7 @@ void load(int r, SValue *sv)
o(0xc0 + REG_VALUE(v) + REG_VALUE(r)*8);
}
} else if (r == TREG_ST0) {
assert((v >= TREG_XMM0) || (v <= TREG_XMM7));
assert((v >= TREG_XMM0) && (v <= TREG_XMM7));
/* gen_cvt_ftof(VT_LDOUBLE); */
/* movsd %xmmN,-0x10(%rsp) */
o(0x110ff2);