travis/test/ret.asm
raw| 1 | ;; All the flavors of RET |
| 2 | %ifndef ERROR |
| 3 | %define ERROR 0 |
| 4 | %endif |
| 5 | |
| 6 | %ifdef TEST_BITS_16 |
| 7 | bits 16 |
| 8 | |
| 9 | ret |
| 10 | retn |
| 11 | retf |
| 12 | retw |
| 13 | retnw |
| 14 | retfw |
| 15 | retd |
| 16 | retnd |
| 17 | retfd |
| 18 | %if ERROR |
| 19 | retq |
| 20 | retnq |
| 21 | retfq |
| 22 | %endif |
| 23 | %endif |
| 24 | |
| 25 | %ifdef TEST_BITS_32 |
| 26 | bits 32 |
| 27 | |
| 28 | ret |
| 29 | retn |
| 30 | retf |
| 31 | retw |
| 32 | retnw |
| 33 | retfw |
| 34 | retd |
| 35 | retnd |
| 36 | retfd |
| 37 | %if ERROR |
| 38 | retq |
| 39 | retnq |
| 40 | retfq |
| 41 | %endif |
| 42 | %endif |
| 43 | |
| 44 | %ifdef TEST_BITS_64 |
| 45 | bits 64 |
| 46 | |
| 47 | ret |
| 48 | retn |
| 49 | retf ; Probably should have been RETFQ, but: legacy... |
| 50 | retw |
| 51 | retnw |
| 52 | retfw |
| 53 | %if ERROR |
| 54 | retd |
| 55 | retnd |
| 56 | %endif |
| 57 | %endif |
| 58 | retfd |
| 59 | retq |
| 60 | retnq |
| 61 | retfq |