test/ret.asm
raw| 1 | ;; All the flavors of RET |
| 2 | %ifndef ERROR |
| 3 | %define ERROR 0 |
| 4 | %endif |
| 5 | |
| 6 | |
| 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 | |
| 24 | bits 32 |
| 25 | |
| 26 | ret |
| 27 | retn |
| 28 | retf |
| 29 | retw |
| 30 | retnw |
| 31 | retfw |
| 32 | retd |
| 33 | retnd |
| 34 | retfd |
| 35 | %if ERROR |
| 36 | retq |
| 37 | retnq |
| 38 | retfq |
| 39 | %endif |
| 40 | |
| 41 | bits 64 |
| 42 | |
| 43 | ret |
| 44 | retn |
| 45 | retf ; Probably should have been RETFQ, but: legacy... |
| 46 | retw |
| 47 | retnw |
| 48 | retfw |
| 49 | %if ERROR |
| 50 | retd |
| 51 | retnd |
| 52 | %endif |
| 53 | retfd |
| 54 | retq |
| 55 | retnq |
| 56 | retfq |