diff --git a/Units/parser-asm.r/gas.s.d/expected.tags b/Units/parser-asm.r/gas.s.d/expected.tags index 257838af48..00d3a8a086 100644 --- a/Units/parser-asm.r/gas.s.d/expected.tags +++ b/Units/parser-asm.r/gas.s.d/expected.tags @@ -1,3 +1,6 @@ X input.s /^#define X /;" d line:7 file: end:7 +_EQU input.s /^.equ _EQU equ1$/;" d line:14 +_EQUIV input.s /^.equiv _EQUIV equiv2$/;" d line:15 +_EQV input.s /^.eqv _EQV eqv3$/;" d line:16 altsum input.s /^.macro altsum from=0, to=6$/;" m line:8 end:13 sum input.s /^.macro sum from=0, to=5$/;" m line:1 end:6 diff --git a/Units/parser-asm.r/gas.s.d/input.s b/Units/parser-asm.r/gas.s.d/input.s index 1e974b0794..d5be3f03d0 100644 --- a/Units/parser-asm.r/gas.s.d/input.s +++ b/Units/parser-asm.r/gas.s.d/input.s @@ -11,3 +11,6 @@ sum "(\from+1)",\to .endif .endm +.equ _EQU equ1 +.equiv _EQUIV equiv2 +.eqv _EQV eqv3 diff --git a/parsers/asm.c b/parsers/asm.c index 8c06d7c3fb..3c28e83e2d 100644 --- a/parsers/asm.c +++ b/parsers/asm.c @@ -98,8 +98,10 @@ static const keywordTable AsmKeywords [] = { { "record", OP_RECORD }, { "sections", OP_SECTIONS }, - /* This one is used in GNU as. */ + /* These are used in GNU as. */ { "section", OP_SECTION }, + { "equiv", OP_EQU }, + { "eqv", OP_EQU }, { "set", OP_SET }, { "struct", OP_STRUCT }