travis/test/weirdpaste.asm
raw| 1 | %define foo xyzzy |
| 2 | %define bar 1e+10 |
| 3 | |
| 4 | %define xyzzy1e 15 |
| 5 | |
| 6 | %macro dx 2 |
| 7 | %assign xx %1%2 |
| 8 | dw xx |
| 9 | %endmacro |
| 10 | |
| 11 | dx foo, bar |
| 12 | |
| 13 | %macro df 2 |
| 14 | %assign xy __float32__(%1e+%2) |
| 15 | dd xy |
| 16 | dd %1e+%2 |
| 17 | %endmacro |
| 18 | |
| 19 | df 1, 36 |
| 20 | df 33, 20 |
| 21 | df 0, 2 |
| 22 | df 1.2, 5 |
| 23 | |
| 24 | |
| 25 | %define N 1e%++%+ 5 |
| 26 | dd N, 1e+5 |
| 27 | |
| 28 | ; |
| 29 | ; test nil dereference, since we're |
| 30 | ; modifying with %line keep it last |
| 31 | ; in the file |
| 32 | ; |
| 33 | ; BR 3392696 |
| 34 | ; |
| 35 | %line 1 "`weirdpaste.asm" |
| 36 | mov eax, eax |