diff options
| author | Andrew Chambers <[email protected]> | 2021-10-11 03:47:04 +1300 |
|---|---|---|
| committer | Andrew Chambers <[email protected]> | 2021-10-11 03:47:04 +1300 |
| commit | 8dd8783aa5b28d4950b9debcf30bd30b367beb7f (patch) | |
| tree | d17254b135d73ff5015102fa660d5f6c5d9086bd /test/test.sh | |
| parent | 37540ce4b89c3f9dfc6184ce3cf9ed18866b6266 (diff) | |
Improve sib indexing.
Diffstat (limited to 'test/test.sh')
| -rw-r--r-- | test/test.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh index 6091543..2584d0a 100644 --- a/test/test.sh +++ b/test/test.sh @@ -30,6 +30,31 @@ t () { echo -n "." } + +t "lea (%rsp), %rax" +t "lea (%rbp), %rax" +t "lea (%rax), %rax" +t "lea 2147483647(%rsp), %rax" +t "lea 2147483647(%rbp), %rax" +t "lea 2147483647(%rax), %rax" + +t "lea (%r9, %r10), %rax" +t "lea (%rsp, %rax), %rax" +t "lea (%rbp, %rax), %rax" +t "lea (%rax, %rax), %rax" +t "lea 2147483647(%rsp, %rax), %rax" +t "lea 2147483647(%rbp, %rax), %rax" +t "lea 2147483647(%rax, %rax), %rax" + +t "lea (%rsp, %rax, 4), %rax" +t "lea (%rbp, %rax, 4), %rax" +t "lea (%rax, %rax, 4), %rax" +t "lea 2147483647(%rsp, %rax, 4), %rax" +t "lea 2147483647(%rbp, %rax, 4), %rax" +t "lea 2147483647(%rax, %rax, 4), %rax" + + + t "ret" t "cltd" t "cqto" |
