aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-07 22:48:05 +1300
committerAndrew Chambers <[email protected]>2021-10-07 22:48:05 +1300
commit035c38a46e86ae24269ff24f1011776200050e7f (patch)
tree9744033f061a5c3acad5a4f0a34b0745447086d6 /test
parent34c94563338da7c2ba7ca3a3e41cd14a10a1ad2f (diff)
Implement more opcodes.
Diffstat (limited to 'test')
-rw-r--r--test/test.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/test.sh b/test/test.sh
index 8d0255a..8d790d8 100644
--- a/test/test.sh
+++ b/test/test.sh
@@ -30,14 +30,12 @@ t () {
echo -n "."
}
-
-
-for op in add and or sub xor
+for op in mov add and or sub xor
do
- t "${op}b \$1, %al"
- #t "${op}w \$1, %ax" # clang disagrees
- #t "${op}l \$1, %eax" # clang disagrees
- #t "${op}q \$1, %rax" # clang disagrees
+ t "${op}b \$127, %al"
+ t "${op}w \$32767, %ax" # clang disagrees
+ t "${op}l \$2147483647, %eax" # clang disagrees
+ t "${op}q \$2147483647, %rax" # clang disagrees
t "${op}b (%rax), %al"
t "${op}w (%rax), %ax"
t "${op}l (%rax), %eax"