From 8ec02b57ec7904c326426f1f0e7daea42f53b72e Mon Sep 17 00:00:00 2001 From: Andrew Chambers Date: Tue, 19 Oct 2021 23:41:18 +1300 Subject: Properly size small immediates. --- test/test.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/test.sh') diff --git a/test/test.sh b/test/test.sh index 4f33634..152ea2b 100644 --- a/test/test.sh +++ b/test/test.sh @@ -284,13 +284,27 @@ do for r in a b do # immediate variants + t "${op}b \$1, (%r${r}x)" t "${op}b \$127, (%r${r}x)" + t "${op}w \$1, (%r${r}x)" t "${op}w \$32767, (%r${r}x)" + t "${op}l \$1, (%r${r}x)" t "${op}l \$2147483647, (%r${r}x)" + t "${op}q \$1, (%r${r}x)" t "${op}q \$2147483647, (%r${r}x)" t "${op}b \$127, %${r}l" t "${op}w \$32767, %${r}x" + + t "${op}w \$1, %${r}x" + + t "${op}l \$1, %e${r}x" + t "${op}l \$1000, %e${r}x" + t "${op}l \$1000000, %e${r}x" t "${op}l \$2147483647, %e${r}x" + + t "${op}q \$1, %r${r}x" + t "${op}q \$1000, %r${r}x" + t "${op}q \$1000000, %r${r}x" t "${op}q \$2147483647, %r${r}x" # r -> m variants -- cgit v1.2.3