Syntax
.repeat expression
Description
The .repeat directive repeats all instructions or data between the .repeat and .endr directives. The expression value defines how many times the enclosing text and data repeats.
You can take advantage of macro substitution in the .repeat/.endr block by using the %r token in the expression. For example:
.repeat 3
.globl aglob%r
.endr
This expands to:
.globl aglob1
.globl aglob2
.globl aglob3