aboutsummaryrefslogtreecommitdiff
path: root/test/test.sh
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-11 03:47:04 +1300
committerAndrew Chambers <[email protected]>2021-10-11 03:47:04 +1300
commit8dd8783aa5b28d4950b9debcf30bd30b367beb7f (patch)
treed17254b135d73ff5015102fa660d5f6c5d9086bd /test/test.sh
parent37540ce4b89c3f9dfc6184ce3cf9ed18866b6266 (diff)
Improve sib indexing.
Diffstat (limited to 'test/test.sh')
-rw-r--r--test/test.sh25
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"