Is there a way to use the .irp directive with a range of values rather than a list?
For example, when saving the context in RISC-V, one needs to store 31 registers to the context frame, like in
sw x1, 0*4(sp)
sw x2, 1*4(sp)
...
sw x31, 30*4(sp)
This can be replaced by .irp
syntax:
.irp num 1,2,3,4,<more numbers>,31
sw x\num, (num-1)*4(sp)
.endr
Is there any way to avoid providing the long list of explicit numbers and have something like range with start and end number instead?