diff options
| -rw-r--r-- | main.c | 2 | ||||
| -rw-r--r-- | test/test.sh | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -941,7 +941,7 @@ static void assemble(void) { } else if (v->instr.variant < 14) { opcode = 0x01000faf; prefix = ((v->instr.variant - 8) % 3) == 0 ? 0x66 : -1; - assemblerrm(&v->instr, prefix, opcode, 0); + assemblerrm(&v->instr, prefix, opcode, 1); } else { const Imm *imm; imm = &v->instr.arg3->imm; diff --git a/test/test.sh b/test/test.sh index 9734915..ba4a036 100644 --- a/test/test.sh +++ b/test/test.sh @@ -231,10 +231,10 @@ t "imul %rax" t "imulq (%rax)" t "imulq (%rip)" -t "imul %rax, %rax" -t "imulq (%rax), %rax" -t "imul %eax, %eax" -t "imull (%rax), %eax" +t "imul %rax, %rbx" +t "imulq (%rax), %rbx" +t "imul %eax, %ebx" +t "imull (%rax), %ebx" t "imul \$2147483647, %rax, %rbx" t "imul \$2147483647, (%rax), %rbx" |
