Initial support for YMM (AVX) registers

Add support for ymm0..15 registers, and the "ymmreg" qualifier.
No support yet for "yword" or "dy".
This commit is contained in:
H. Peter Anvin 2008-04-21 22:44:55 -04:00
parent a762ca544b
commit 7117e80702
2 changed files with 7 additions and 1 deletions

5
nasm.h
View File

@ -440,8 +440,9 @@ enum {
* 24: FPUREG
* 25: RM_MMX (MMXREG)
* 26: RM_XMM (XMMREG)
* 27: RM_YMM (YMMREG)
*
* Bits 27, 31 are currently unallocated.
* Bit 31 is currently unallocated.
*
* 30: SAME_AS
* Special flag only used in instruction patterns; means this operand
@ -496,6 +497,8 @@ typedef uint32_t opflags_t;
#define RM_XMM 0x04008000U /* XMM (SSE) operand */
#define XMMREG 0x04009000U /* XMM (SSE) register */
#define XMM0 0x04019000U /* XMM register zero */
#define RM_YMM 0x08008000U /* YMM (AVX) operand */
#define YMMREG 0x08009000U /* YMM (AVX) register */
#define REG_CDT 0x00101004U /* CRn, DRn and TRn */
#define REG_CREG 0x00111004U /* CRn */
#define REG_DREG 0x00121004U /* DRn */

View File

@ -80,3 +80,6 @@ mm0-7 MMXREG mmxreg 0
# SSE registers
xmm0 XMM0 xmmreg 0
xmm1-15 XMMREG xmmreg 1
# AVX registers
ymm0-15 YMMREG ymmreg 0