aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-14 18:44:01 +1300
committerAndrew Chambers <[email protected]>2021-10-14 18:44:01 +1300
commita4289ade4c65730124e10849b1544db374cf5062 (patch)
treea58049fa8b6426db7cde7f7a0693883378e67046 /test
parent311a0567533bd9ac207ffde364990b0b4a27dd49 (diff)
Fix incorrect order in 3 address multiplication.
Diffstat (limited to 'test')
-rw-r--r--test/test.sh13
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"