match: Check the number of elements in broadcasting operandsavx512
commit4b5b1cbc6a9b00a9062a6c2333ea052d8785584b
authorJin Kyu Song <jin.kyu.song@intel.com>
Wed, 30 Oct 2013 10:12:45 +0000 (30 03:12 -0700)
committerJin Kyu Song <jin.kyu.song@intel.com>
Sat, 9 Nov 2013 01:25:16 +0000 (8 17:25 -0800)
tree4106e0155e205dbb3c47cd8715ae484625183756
parent2067af8cf3ed928223f6a8ecb30f8a90e5e5beb2
match: Check the number of elements in broadcasting operands

The broadcasting decorator {1to##} must describe exactly how many times
the memory element is repeated in order to clearly match the correct
instruction format.

For example,
    vaddpd zmm30,zmm29,QWORD [rdx+0x3f8]{1to8}   ; good
    vaddpd zmm30,zmm29,QWORD [rdx+0x3f8]{1to16}  ; fail qword * 16 = 1024b

    vaddps zmm30,zmm29,DWORD [rcx]{1to16}  ; good
    vaddps zmm30,zmm29,DWORD [rcx]{1to8}  ; fail dword * 8 = 256b

Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
assemble.c
nasm.h
parser.c