OLD | NEW |
(Empty) | |
| 1 BITS: 64 |
| 2 OUTCOME: invalid |
| 3 |
| 4 # Test string operations with 1 memory operand |
| 5 # mov %edi,%edi |
| 6 # lea (%r15,%rdi,1),%rdi |
| 7 # scas %es:(%rdi),%al |
| 8 asm: mov %edi,%edi |
| 9 hex: 89 ff |
| 10 |
| 11 asm: lea (%r15,%rdi,1),%rdi |
| 12 hex: 49 8d 3c 3f |
| 13 |
| 14 asm: scas %es:(%rdi),%al |
| 15 hex: ae |
| 16 |
| 17 |
| 18 # add %edi,%edi |
| 19 # lea (%r15,%rdi,1),%rdi |
| 20 # scas %es:(%rdi),%al |
| 21 asm: add %edi,%edi |
| 22 hex: 01 ff |
| 23 |
| 24 asm: lea (%r15,%rdi,1),%rdi |
| 25 hex: 49 8d 3c 3f |
| 26 |
| 27 asm: scas %es:(%rdi),%al |
| 28 hex: ae |
| 29 nc_out: ERROR: Segment memory reference not allowed |
| 30 |
| 31 |
| 32 # mov %edi,%edi |
| 33 # add %r15,%rdi |
| 34 # scas %es:(%rdi),%al |
| 35 asm: mov %edi,%edi |
| 36 hex: 89 ff |
| 37 |
| 38 asm: add %r15,%rdi |
| 39 hex: 4c 01 ff |
| 40 |
| 41 asm: scas %es:(%rdi),%al |
| 42 hex: ae |
| 43 nc_out: ERROR: Segment memory reference not allowed |
| 44 |
| 45 |
| 46 # mov %edi,%edi |
| 47 # lea (%rdi,%r15,1),%rdi |
| 48 # scas %es:(%rdi),%al |
| 49 asm: mov %edi,%edi |
| 50 hex: 89 ff |
| 51 |
| 52 asm: lea (%rdi,%r15,1),%rdi |
| 53 hex: 4a 8d 3c 3f |
| 54 |
| 55 asm: scas %es:(%rdi),%al |
| 56 hex: ae |
| 57 nc_out: ERROR: Segment memory reference not allowed |
| 58 |
| 59 |
| 60 # Test string operations with 2 memory operands. |
| 61 # mov %esi,%esi |
| 62 # add %r15,%rsi |
| 63 # mov %edi,%edi |
| 64 # add %r15,%rdi |
| 65 # movsl %ds:(%rsi),%es:(%rdi) |
| 66 asm: mov %esi,%esi |
| 67 hex: 89 f6 |
| 68 |
| 69 asm: add %r15,%rsi |
| 70 hex: 4c 01 fe |
| 71 |
| 72 asm: mov %edi,%edi |
| 73 hex: 89 ff |
| 74 |
| 75 asm: add %r15,%rdi |
| 76 hex: 4c 01 ff |
| 77 |
| 78 asm: movsl %ds:(%rsi),%es:(%rdi) |
| 79 hex: a5 |
| 80 nc_out: ERROR: Segment memory reference not allowed |
| 81 nc_out: ERROR: Segment memory reference not allowed |
| 82 |
| 83 |
| 84 # mov %esi,%esi |
| 85 # add %r15,%rsi |
| 86 # mov %edi,%edi |
| 87 # add %r15,%rdi |
| 88 # cmpsl %es:(%rdi),%ds:(%rsi) |
| 89 asm: mov %esi,%esi |
| 90 hex: 89 f6 |
| 91 |
| 92 asm: add %r15,%rsi |
| 93 hex: 4c 01 fe |
| 94 |
| 95 asm: mov %edi,%edi |
| 96 hex: 89 ff |
| 97 |
| 98 asm: add %r15,%rdi |
| 99 hex: 4c 01 ff |
| 100 |
| 101 asm: cmpsl %es:(%rdi),%ds:(%rsi) |
| 102 hex: a7 |
| 103 nc_out: ERROR: Segment memory reference not allowed |
| 104 nc_out: ERROR: Segment memory reference not allowed |
| 105 |
| 106 |
| 107 # mov %esi,%esi |
| 108 # lea (%r15,%rsi),%rsi |
| 109 # mov %edi,%edi |
| 110 # lea (%r15,%rdi),%rdi |
| 111 # cmpsl %es:(%rdi),%ds:(%rsi) |
| 112 asm: mov %esi,%esi |
| 113 hex: 89 f6 |
| 114 |
| 115 asm: lea (%r15,%rsi,1),%rsi |
| 116 hex: 49 8d 34 37 |
| 117 |
| 118 asm: mov %edi,%edi |
| 119 hex: 89 ff |
| 120 |
| 121 asm: lea (%r15,%rdi,1),%rdi |
| 122 hex: 49 8d 3c 3f |
| 123 |
| 124 asm: cmpsl %es:(%rdi),%ds:(%rsi) |
| 125 hex: a7 |
| 126 |
| 127 |
| 128 # mov %edi,%edi |
| 129 # lea (%r15,%rdi),%rdi |
| 130 # mov %esi,%esi |
| 131 # lea (%r15,%rsi),%rsi |
| 132 # cmpsl %es:(%rdi),%ds:(%rsi) |
| 133 asm: mov %edi,%edi |
| 134 hex: 89 ff |
| 135 |
| 136 asm: lea (%r15,%rdi,1),%rdi |
| 137 hex: 49 8d 3c 3f |
| 138 |
| 139 asm: mov %esi,%esi |
| 140 hex: 89 f6 |
| 141 |
| 142 asm: lea (%r15,%rsi,1),%rsi |
| 143 hex: 49 8d 34 37 |
| 144 |
| 145 asm: cmpsl %es:(%rdi),%ds:(%rsi) |
| 146 hex: a7 |
| 147 nc_out: ERROR: Segment memory reference not allowed |
| 148 |
| 149 |
| 150 # add %esi,%esi |
| 151 # lea (%r15,%rsi,1),%rsi |
| 152 # add %edi,%edi |
| 153 # lea (%r15,%rdi,1),%rdi |
| 154 # cmpsl %es:(%rdi),%ds:(%rsi) |
| 155 asm: add %esi,%esi |
| 156 hex: 01 f6 |
| 157 |
| 158 asm: lea (%r15,%rsi,1),%rsi |
| 159 hex: 49 8d 34 37 |
| 160 |
| 161 asm: add %edi,%edi |
| 162 hex: 01 ff |
| 163 |
| 164 asm: lea (%r15,%rdi,1),%rdi |
| 165 hex: 49 8d 3c 3f |
| 166 |
| 167 asm: cmpsl %es:(%rdi),%ds:(%rsi) |
| 168 hex: a7 |
| 169 nc_out: ERROR: Segment memory reference not allowed |
| 170 nc_out: ERROR: Segment memory reference not allowed |
| 171 |
OLD | NEW |