aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-10 20:30:33 +1300
committerAndrew Chambers <[email protected]>2021-10-10 20:30:33 +1300
commit6c881983cad0ac9b8896d41e2335f63c416325d4 (patch)
tree5ed25dc1f2a06c5be221bed0a8f8989d6de3f82c /test
parentbf562b2c9b6fa61751d22ab30365fe9289425d84 (diff)
Add set opcode.
Diffstat (limited to 'test')
-rw-r--r--test/test.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh
index 271f815..b3346e7 100644
--- a/test/test.sh
+++ b/test/test.sh
@@ -30,6 +30,22 @@ t () {
echo -n "."
}
+conditioncodes="
+ a ae b be c e
+ z g ge l le na
+ nae nb nbe nc
+ ne ng nge nl
+ nle no np ns nz
+ o p pe po s z
+"
+
+for cc in $conditioncodes
+do
+ t "set${cc} %al"
+ t "set${cc} (%rax)"
+done
+
+
for op in sal sar shl shr
do
t "${op} \$3, %rax"