History

arm64: Fix largeptr test

VT_PTR needs to be handled like VT_LLONG.

Michael Matz committed 9 years ago

Commit b1554321 parent b5b12b81 file · +2 −1Browse files

Unified · Split

arm64-gen.c+2−1
@@ -1326,7 +1326,8 @@ static int arm64_iconst(uint64_t *val, SValue *sv) · 1325 unmodified lines
1326 return 0;1326 return 0;
1327 if (val) {1327 if (val) {
1328 int t = sv->type.t;1328 int t = sv->type.t;
1329 *val = ((t & VT_BTYPE) == VT_LLONG ? sv->c.i :1329 int bt = t & VT_BTYPE;
1330 *val = ((bt == VT_LLONG || bt == VT_PTR) ? sv->c.i :
1330 (uint32_t)sv->c.i |1331 (uint32_t)sv->c.i |
1331 (t & VT_UNSIGNED ? 0 : -(sv->c.i & 0x80000000)));1332 (t & VT_UNSIGNED ? 0 : -(sv->c.i & 0x80000000)));
1332 }1333 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t