jitcraft/Opcodes.tbl
changeset 4 633176823669
parent 0 c455ebb9a5dc
child 6 172dd7799d0a
     1.1 --- a/jitcraft/Opcodes.tbl	Tue Jun 26 00:58:55 2012 -0700
     1.2 +++ b/jitcraft/Opcodes.tbl	Wed Jun 27 02:21:56 2012 -0700
     1.3 @@ -116,3 +116,19 @@
     1.4  // push(array)
     1.5  // push(index)
     1.6  OPDEF(OP_BOUNDS_STA,    28,         "bounds.sta",   1,      2,  2)
     1.7 +
     1.8 +// Pushes a 32-bit IEEE-754 floating point immediate onto the stack.
     1.9 +OPDEF(OP_FLOAT,         29,         "float",        5,      0,  1)
    1.10 +
    1.11 +// Converts an integer to a 32-bit IEEE-754 floating point immediate.
    1.12 +OPDEF(OP_CVT_I2F,       30,         "cvt.i2f",      1,      1,  1)
    1.13 +
    1.14 +// Stack transitions for these binary operators:
    1.15 +// rhs = pop()
    1.16 +// lhs = pop()
    1.17 +// push(lhs OP rhs)
    1.18 +OPDEF(OP_ADD_F,         31,         "add.f",        1,      2,  1)
    1.19 +OPDEF(OP_SUB_F,         32,         "sub.f",        1,      2,  1)
    1.20 +OPDEF(OP_MUL_F,         33,         "mul.f",        1,      2,  1)
    1.21 +OPDEF(OP_DIV_F,         34,         "div.f",        1,      2,  1)
    1.22 +