OLD | NEW |
(Empty) | |
| 1 BITS: 64 |
| 2 OUTCOME: invalid |
| 3 |
| 4 # Sample stubout code, with multiple stubouts. |
| 5 # |
| 6 # add %al, %al |
| 7 asm: add %al,%al |
| 8 hex: 00 c0 |
| 9 |
| 10 # add &rsp, %r15; -- stub out! |
| 11 asm: add %r15,%rsp |
| 12 hex: 4c 01 fc |
| 13 nc_out: ERROR: Illegal assignment to RSP |
| 14 |
| 15 # add %ebx, %r8d |
| 16 asm: add %r8d,%ebx |
| 17 hex: 44 01 c3 |
| 18 |
| 19 # test %rax, %rax |
| 20 asm: test %rax,%rax |
| 21 hex: 48 85 c0 |
| 22 |
| 23 # inc [%rip+0x397614]; -- stub out! |
| 24 asm: addr32 incl 0x3976a4(%eip) # 0x3976ab |
| 25 hex: 67 ff 05 a4 76 39 00 |
| 26 nc_out: ERROR: Use of 67 (ADDR16) prefix not allowed by Native Client |
| 27 nc_out: ERROR: Assignment to non-64 bit memory address |
| 28 |
| 29 # mov %r9, %rdx |
| 30 asm: mov %rdx,%r9 |
| 31 hex: 49 89 d1 |
| 32 |
| 33 # mov [%rbp+0x63e470], %rax; -- stub out! |
| 34 hex: 67 48 89 84 25 70 e4 63 00 |
| 35 nc_out: ERROR: Use of 67 (ADDR16) prefix not allowed by Native Client |
| 36 nc_out: ERROR: Assignment to non-64 bit memory address |
| 37 |
| 38 |
OLD | NEW |