Print correct values for testcase 134 on all targets

Testcase 134 only worked on x86_64 and i386 not on other targets.
This commit is contained in:
herman ten brugge 2024-12-30 07:31:16 +01:00
parent eef2db71a9
commit 68000c01ae

View file

@ -3251,8 +3251,12 @@ error:
} else if (sf && dbt == VT_BOOL) { } else if (sf && dbt == VT_BOOL) {
vtop->c.i = (vtop->c.ld != 0); vtop->c.i = (vtop->c.ld != 0);
} else { } else {
if(sf) if(sf) {
vtop->c.i = vtop->c.ld; if (dbt & VT_UNSIGNED)
vtop->c.i = (uint64_t)vtop->c.ld;
else
vtop->c.i = (int64_t)vtop->c.ld;
}
else if (sbt_bt == VT_LLONG || (PTR_SIZE == 8 && sbt == VT_PTR)) else if (sbt_bt == VT_LLONG || (PTR_SIZE == 8 && sbt == VT_PTR))
; ;
else if (sbt & VT_UNSIGNED) else if (sbt & VT_UNSIGNED)