Victor van den Elzen | a5869fb | 2009-02-23 05:16:35 +0100 | [diff] [blame] | 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 |
| 4 | |
| 5 | BITS 32 |
| 6 | |
| 7 | jmp foo |
| 8 | times 124 nop |
| 9 | foo: |
| 10 | |
| 11 | jmp bar |
| 12 | times 125 nop |
| 13 | bar: |
| 14 | |
| 15 | db 0 |
| 16 | |
| 17 | jmp baz |
| 18 | times 126 nop |
| 19 | baz: |
| 20 | |
| 21 | jmp car |
| 22 | times 127 nop |
| 23 | car: |
| 24 | |
| 25 | add eax, quux2 - quux1 |
| 26 | quux1: |
| 27 | times 127 nop |
| 28 | quux2: |
| 29 | |
| 30 | ; currently fails - short add possible but converges to long form |
| 31 | corge1: |
| 32 | add eax, corge2 - corge1 |
| 33 | times 124 nop |
| 34 | corge2: |
H. Peter Anvin | 130360f | 2009-02-23 17:47:25 -0800 | [diff] [blame^] | 35 | |
| 36 | ; this needs to actually *work*... |
| 37 | jmp 12345 |