mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-15 05:20:06 +08:00
arm64-gen.c: In load(), do not sign-extend 32-bit VT_CONST.
This commit is contained in:
parent
8d4c861144
commit
9163393476
@ -495,8 +495,8 @@ ST_FUNC void load(int r, SValue *sv)
|
||||
|
||||
if (svr == VT_CONST) {
|
||||
if ((svtt & VT_BTYPE) != VT_VOID)
|
||||
arm64_movimm(intr(r),
|
||||
arm64_type_size(svtt) == 3 ? sv->c.ull : svcul);
|
||||
arm64_movimm(intr(r), arm64_type_size(svtt) == 3 ?
|
||||
sv->c.ull : (uint32_t)svcul);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user