OLD | NEW |
(Empty) | |
| 1 BITS: 64 |
| 2 OUTCOME: invalid |
| 3 |
| 4 # Test that we correctly check both implicit arguments to movsb |
| 5 |
| 6 # Valid case, within bundle |
| 7 # 0000000000000000: 89 f6 mov %esi, %esi |
| 8 # 0000000000000002: 49 8d 34 37 lea %rsi, [%r15
+%rsi*1] |
| 9 # 0000000000000006: 89 ff mov %edi, %edi |
| 10 # 0000000000000008: 49 8d 3c 3f lea %rdi, [%r15
+%rdi*1] |
| 11 # 000000000000000c: a4 movsb |
| 12 asm: mov %esi,%esi |
| 13 hex: 89 f6 |
| 14 |
| 15 asm: lea (%r15,%rsi,1),%rsi |
| 16 hex: 49 8d 34 37 |
| 17 |
| 18 asm: mov %edi,%edi |
| 19 hex: 89 ff |
| 20 |
| 21 asm: lea (%r15,%rdi,1),%rdi |
| 22 hex: 49 8d 3c 3f |
| 23 |
| 24 asm: movsb %ds:(%rsi),%es:(%rdi) |
| 25 hex: a4 |
| 26 |
| 27 |
| 28 # Nop spacer. |
| 29 asm: nop; nop; nop; nop; nop; nop; nop; nop |
| 30 hex: 90 90 90 90 90 90 90 90 |
| 31 |
| 32 asm: nop; nop; nop; nop; nop; nop; nop; nop |
| 33 hex: 90 90 90 90 90 90 90 90 |
| 34 |
| 35 asm: nop |
| 36 hex: 90 |
| 37 |
| 38 |
| 39 # invalid case, crosses bundle |
| 40 # 000000000000001e: 89 f6 mov %esi, %esi |
| 41 # 0000000000000020: 49 8d 34 37 lea %rsi, [%r15
+%rsi*1] |
| 42 # 0000000000000024: 89 ff mov %edi, %edi |
| 43 # 0000000000000026: 49 8d 3c 3f lea %rdi, [%r15
+%rdi*1] |
| 44 # 000000000000002a: a4 movsb |
| 45 asm: mov %esi,%esi |
| 46 hex: 89 f6 |
| 47 |
| 48 asm: lea (%r15,%rsi,1),%rsi |
| 49 hex: 49 8d 34 37 |
| 50 nc_out: Bad basic block alignment. |
| 51 |
| 52 asm: mov %edi,%edi |
| 53 hex: 89 ff |
| 54 |
| 55 asm: lea (%r15,%rdi,1),%rdi |
| 56 hex: 49 8d 3c 3f |
| 57 |
| 58 asm: movsb %ds:(%rsi),%es:(%rdi) |
| 59 hex: a4 |
| 60 |
OLD | NEW |