bootstrappable: ARM: HAVE_FLOAT.

This commit is contained in:
Jan (janneke) Nieuwenhuizen 2021-12-05 13:44:07 +01:00
parent 7b5d1754d3
commit 94b62e27d9
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 4 additions and 0 deletions

View File

@ -1689,6 +1689,7 @@ done:
#ifdef TCC_ARM_VFP
static int is_zero(int i)
{
#if HAVE_FLOAT
if((vtop[i].r & (VT_VALMASK | VT_LVAL | VT_SYM)) != VT_CONST)
return 0;
if (vtop[i].type.t == VT_FLOAT)
@ -1696,6 +1697,9 @@ static int is_zero(int i)
else if (vtop[i].type.t == VT_DOUBLE)
return (vtop[i].c.d == 0.0);
return (vtop[i].c.ld == 0.l);
#else
return 0;
#endif
}
/* generate a floating point operation 'v = t1 op t2' instruction. The