From c47ef9490bb9855b1d04931b696510a1cb042cad Mon Sep 17 00:00:00 2001 From: Jin Kyu Song Date: Fri, 30 Aug 2013 18:10:35 -0700 Subject: AVX-512: Fix rounding mode value in EVEX prefix with SAE If SAE is set, VL(vector length) is implied to be 512. EVEX.L'L (=EVEX.RC) is set to 00b by default. Signed-off-by: Jin Kyu Song Signed-off-by: Cyrill Gorcunov --- nasm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nasm.h') diff --git a/nasm.h b/nasm.h index e9ef585..50e4b63 100644 --- a/nasm.h +++ b/nasm.h @@ -514,7 +514,8 @@ static inline uint8_t get_cond_opcode(enum ccode c) #define EVEX_P2AAA 0x07 /* EVEX P[18:16] : Embedded opmask */ #define EVEX_P2VP 0x08 /* EVEX P[19] : High-16 NDS reg */ #define EVEX_P2B 0x10 /* EVEX P[20] : Broadcast / RC / SAE */ -#define EVEX_P2LL 0x60 /* EVEX P[22:21] : Vector length / RC */ +#define EVEX_P2LL 0x60 /* EVEX P[22:21] : Vector length */ +#define EVEX_P2RC EVEX_P2LL /* EVEX P[22:21] : Rounding control */ #define EVEX_P2Z 0x80 /* EVEX P[23] : Zeroing/Merging */ /* -- cgit v1.2.3