Add test file for optimal convergence
[nasm/perl-rewrite.git] / test / convergence.asm
blob54d6ae4aea855a29bfcc67ffed719108100b7640
1 ;Testname=O0; Arguments=-O0 -fbin -oconvergence.bin; Files=stdout stderr convergence.bin
2 ;Testname=O1; Arguments=-O1 -fbin -oconvergence.bin; Files=stdout stderr convergence.bin
3 ;Testname=Ox; Arguments=-Ox -fbin -oconvergence.bin; Files=stdout stderr convergence.bin
5 BITS 32
7 jmp foo
8 times 124 nop
9 foo:
11 jmp bar
12 times 125 nop
13 bar:
15 db 0
17 jmp baz
18 times 126 nop
19 baz:
21 jmp car
22 times 127 nop
23 car:
25 add eax, quux2 - quux1
26 quux1:
27 times 127 nop
28 quux2:
30 ; currently fails - short add possible but converges to long form
31 corge1:
32 add eax, corge2 - corge1
33 times 124 nop
34 corge2: