mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 02:52:24 +00:00
Set size testing and constant size propagation.
This commit is contained in:
parent
7238be5257
commit
d344c9ce80
13 changed files with 126 additions and 71 deletions
|
|
@ -1859,7 +1859,7 @@ void OPC_Len (OPT_Object obj, OPT_Struct array, int64 dim)
|
|||
void OPC_Constant (OPT_Const con, int16 form)
|
||||
{
|
||||
int16 i;
|
||||
uint32 s;
|
||||
uint64 s;
|
||||
int32 hex;
|
||||
BOOLEAN skipLeading;
|
||||
switch (form) {
|
||||
|
|
@ -1891,7 +1891,7 @@ void OPC_Constant (OPT_Const con, int16 form)
|
|||
do {
|
||||
i -= 1;
|
||||
hex = __ASHL(hex, 1);
|
||||
if (__IN(i, s, 32)) {
|
||||
if (__IN(i, s, 64)) {
|
||||
hex += 1;
|
||||
}
|
||||
} while (!(__MASK(i, -8) == 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue