mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
stdscan: Rework curly brace parsing routines
As recommended by the community, a comma-separated decorators ({k1,z}) and nested braces ({{k1},{z}}) are dropped out. So only standard syntax is supported from now. This rework made source code neat and easy to maintain. Most of the codes for handling corner cases are removed. Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
This commit is contained in:
2
parser.c
2
parser.c
@@ -200,7 +200,7 @@ static void process_size_override(insn *result, operand *op)
|
||||
* when two or more decorators follow a register operand,
|
||||
* consecutive decorators are parsed here.
|
||||
* opmask and zeroing decorators can be placed in any order.
|
||||
* e.g. zmm1 {k2}{z} or zmm2 {z,k3}
|
||||
* e.g. zmm1 {k2}{z} or zmm2 {z}{k3}
|
||||
* decorator(s) are placed at the end of an operand.
|
||||
*/
|
||||
static bool parse_braces(decoflags_t *decoflags)
|
||||
|
Reference in New Issue
Block a user