0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

Add support for ymm0 in instructions

Make it possible to use ymm0 as a fixed operand in instructions
This commit is contained in:
H. Peter Anvin
2008-05-20 16:47:12 -07:00
parent 711b0c1e39
commit ee7fc29a30
2 changed files with 6 additions and 1 deletions

4
nasm.h
View File

@@ -423,6 +423,9 @@ enum {
* With XMMREG:
* 16: XMM0
*
* With YMMREG:
* 16: YMM0
*
* With MEMORY:
* 16: MEM_OFFS (this is a simple offset)
* 17: IP_REL (IP-relative offset)
@@ -497,6 +500,7 @@ typedef uint32_t opflags_t;
#define XMM0 0x04019000U /* XMM register zero */
#define RM_YMM 0x08008000U /* YMM (AVX) operand */
#define YMMREG 0x08009000U /* YMM (AVX) register */
#define YMM0 0x08019000U /* YMM register zero */
#define REG_CDT 0x00101004U /* CRn, DRn and TRn */
#define REG_CREG 0x00111004U /* CRn */
#define REG_DREG 0x00121004U /* DRn */

View File

@@ -82,4 +82,5 @@ xmm0 XMM0 xmmreg 0
xmm1-15 XMMREG xmmreg 1
# AVX registers
ymm0-15 YMMREG ymmreg 0
ymm0 YMM0 ymmreg 0
ymm1-15 YMMREG ymmreg 0