mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Fix compiler bug
Test case: I64 Bug(I64 x) { x&=~1; return x; } Bug(-200) should produce -200, but doesn't without this fix.
This commit is contained in:
parent
b1e0034183
commit
933a3f0ad7
1 changed files with 1 additions and 10 deletions
|
@ -170,16 +170,6 @@ in int<-->F64 conversions of function args.
|
||||||
tmpi->ic_flags |= ICF_USE_F64;
|
tmpi->ic_flags |= ICF_USE_F64;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IC_COM:
|
|
||||||
if (tmpi1->ic_code == IC_IMM_I64)
|
|
||||||
{
|
|
||||||
tmpi->ic_data = ~tmpi1->ic_data;
|
|
||||||
tmpi->ic_code = IC_IMM_I64;
|
|
||||||
tmpi->ic_flags |= tmpi1->ic_flags;
|
|
||||||
OptSetNOP1(tmpi1);
|
|
||||||
}
|
|
||||||
tmpi_push->ic_class2 = cmp.internal_types[RT_I64];
|
|
||||||
break;
|
|
||||||
start:
|
start:
|
||||||
case IC_NOT:
|
case IC_NOT:
|
||||||
if (tmpc->raw_type == RT_F64)
|
if (tmpc->raw_type == RT_F64)
|
||||||
|
@ -1533,6 +1523,7 @@ in int<-->F64 conversions of function args.
|
||||||
case IC_NOBOUND_SWITCH:
|
case IC_NOBOUND_SWITCH:
|
||||||
case IC_SWITCH:
|
case IC_SWITCH:
|
||||||
case IC_ASM:
|
case IC_ASM:
|
||||||
|
case IC_COM:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue