diff options
| author | Andrew Chambers <[email protected]> | 2021-10-10 13:10:36 +1300 |
|---|---|---|
| committer | Andrew Chambers <[email protected]> | 2021-10-10 13:10:36 +1300 |
| commit | 0c15252bb0ca5a1f2f38ad2bd33c025d79590716 (patch) | |
| tree | 11fbc2a003a24c7280abca4576877d18b7db60b8 /test | |
| parent | a1c13cabff6e80e6f3d025294b355a26300894e5 (diff) | |
Three address form of imul.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index 7251e76..f908e4a 100644 --- a/test/test.sh +++ b/test/test.sh @@ -48,7 +48,13 @@ t "imul %rax, %rax" t "imulq (%rax), %rax" t "imul %eax, %eax" t "imull (%rax), %eax" -t "imul %eax, %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 "pushq (%r9)" t "pushq %r9" |
