FFI: Parse complex and 64 bit integer literals.

This commit is contained in:
Mike Pall
2010-12-24 01:31:39 +01:00
parent 4850865c57
commit 461bf77331
14 changed files with 305 additions and 112 deletions

View File

@@ -2430,6 +2430,19 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
| evstddx TMP0, BASE, RA
| ins_next2
break;
case BC_KCDATA:
#if LJ_HASFFI
| // RA = dst*8, RD = cdata_const*8 (~)
| ins_next1
| srwi TMP1, RD, 1
| subfic TMP1, TMP1, -4
| lwzx TMP0, KBASE, TMP1 // KBASE-4-cdata_const*4
| li TMP2, LJ_TCDATA
| evmergelo TMP0, TMP2, TMP0
| evstddx TMP0, BASE, RA
| ins_next2
#endif
break;
case BC_KSHORT:
| // RA = dst*8, RD = int16_literal*8
| srwi TMP1, RD, 3