Update vm_s390x.dasc

added definations to macros to test operand type refeered x86 definations
no JUMP instruction found for s390x used BRANCH RELATIVE on CONDITION instead (brc)
Not sure how the condition will be checked , need to discuss this
This commit is contained in:
ketank-new 2016-11-24 14:58:52 +05:30 committed by GitHub
parent 4ea7607e02
commit 3288e547bf

View File

@ -196,11 +196,11 @@
|//-----------------------------------------------------------------------
|
|// Macros to test operand types.
|.macro checktp, .endmacro
|.macro checknum, .endmacro
|.macro checkint, .endmacro
|.macro checkstr, .endmacro
|.macro checktab, .endmacro
|.macro checktp, reg, tp; CG dword [BASE+reg*8+4], tp; .endmacro
|.macro checknum, reg, target; checktp reg, LJ_TISNUM; brc target; .endmacro // condition to chk is result is above or equal
|.macro checkint, reg, target; checktp reg, LJ_TISNUM; brc target; .endmacro // condition to chk is result is not equal
|.macro checkstr, reg, target; checktp reg, LJ_TSTR; brc target; .endmacro // condition to chk is result is nto equal
|.macro checktab, reg, target; checktp reg, LJ_TTAB; brc target; .endmacro // condition to chk is result is nto equal
|
|// These operands must be used with movzx.
|.define PC_OP, byte [PC-4]