If you don't mind changing the assembler, you can add a pseudo-op that says "this is the end of a loop, pad to 6 words if needed" loop_top: ... .loopend loop_top ... Perhaps a generic "optional padding here" pseudo would be more useful.