A uint64 bug fix on x86-64
64bit unsigned literal was handled as 32bit integer. Added a unittest to catch this.
This commit is contained in:
committed by
grischka
parent
ae607280c5
commit
62e73da612
@ -312,7 +312,7 @@ void load(int r, SValue *sv)
|
||||
gen_modrm(r, fr, sv->sym, fc);
|
||||
} else {
|
||||
if (v == VT_CONST) {
|
||||
if ((ft & VT_TYPE) == VT_LLONG) {
|
||||
if ((ft & VT_BTYPE) == VT_LLONG) {
|
||||
o(0x48);
|
||||
o(0xb8 + REG_VALUE(r)); /* mov $xx, r */
|
||||
gen_addr64(fr, sv->sym, sv->c.ull);
|
||||
|
||||
Reference in New Issue
Block a user