diff options
| author | Andrew Chambers <[email protected]> | 2021-10-14 18:44:01 +1300 |
|---|---|---|
| committer | Andrew Chambers <[email protected]> | 2021-10-14 18:44:01 +1300 |
| commit | a4289ade4c65730124e10849b1544db374cf5062 (patch) | |
| tree | a58049fa8b6426db7cde7f7a0693883378e67046 /test | |
| parent | 311a0567533bd9ac207ffde364990b0b4a27dd49 (diff) | |
Fix incorrect order in 3 address multiplication.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/test.sh b/test/test.sh index fb7cd99..9f2cc0f 100644 --- a/test/test.sh +++ b/test/test.sh @@ -32,6 +32,7 @@ t () { t "movsbq (%rax), %rbx" +t "movq $-4132994306676758123, %rcx" t "mov \$17293822569102704639, %rax" t "callq *%rax" @@ -220,12 +221,12 @@ t "imulq (%rax), %rax" t "imul %eax, %eax" t "imull (%rax), %eax" -t "imul \$2147483647, %rax, %rax" -t "imul \$2147483647, (%rax), %rax" -t "imul \$2147483647, %eax, %eax" -t "imul \$2147483647, (%rax), %eax" -t "imul \$32767, %ax, %ax" -t "imul \$32767, (%rax), %ax" +t "imul \$2147483647, %rax, %rbx" +t "imul \$2147483647, (%rax), %rbx" +t "imul \$2147483647, %eax, %ebx" +t "imul \$2147483647, (%rax), %ebx" +t "imul \$32767, %ax, %bx" +t "imul \$32767, (%rax), %bx" t "pushq (%r9)" t "pushq %r9" |
