summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorJin Kyu Song <jin.kyu.song@intel.com>2013-08-30 18:10:35 -0700
committerCyrill Gorcunov <gorcunov@gmail.com>2013-09-07 11:50:11 +0400
commitc47ef9490bb9855b1d04931b696510a1cb042cad (patch)
tree483c99706c345d006ec5161e73dab62766121507 /nasm.h
parent088827bc6c8590108e5d752fd1f968d128b5586e (diff)
downloadnasm-c47ef9490bb9855b1d04931b696510a1cb042cad.tar.gz
nasm-c47ef9490bb9855b1d04931b696510a1cb042cad.tar.bz2
nasm-c47ef9490bb9855b1d04931b696510a1cb042cad.zip
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 <jin.kyu.song@intel.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h3
1 files changed, 2 insertions, 1 deletions
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 */
/*