Either this fix, or an alternative one, is required for arm64.
Unified · Split
| @@ -1832,6 +1832,9 @@ ST_FUNC void gen_op(int op) · 1831 unmodified lines | ||
| 1832 | 1832 | vtop->type.t = t; |
| 1833 | 1833 | } |
| 1834 | 1834 | } |
| 1835 | + // Make sure that we have converted to an rvalue: | |
| 1836 | + if (vtop->r & VT_LVAL) | |
| 1837 | + gv(is_float(vtop->type.t & VT_BTYPE) ? RC_FLOAT : RC_INT); | |
| 1835 | 1838 | } |
| 1836 | 1839 | |
| 1837 | 1840 | #ifndef TCC_TARGET_ARM |