aboutsummaryrefslogtreecommitdiff
path: root/tests/asmtest.S
diff options
context:
space:
mode:
authorJoe Soroka <gits@joesoroka.com>2011-02-01 15:37:58 -0800
committerJoe Soroka <gits@joesoroka.com>2011-02-01 15:37:58 -0800
commit87d84b7cb8b41a4ebf8dda39edc74acc1382d0e6 (patch)
treeeab7079ea2a0719e3120ac352eb15077fac02075 /tests/asmtest.S
parenta25325e9be13e52a198807b443bdfbfbe5dcaf33 (diff)
downloadtinycc-87d84b7cb8b41a4ebf8dda39edc74acc1382d0e6.tar.gz
tinycc-87d84b7cb8b41a4ebf8dda39edc74acc1382d0e6.tar.bz2
tccasm: allow one-line prefix+op things like "rep stosb"
Diffstat (limited to 'tests/asmtest.S')
-rw-r--r--tests/asmtest.S18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S
index 0d4c0fc..452815c 100644
--- a/tests/asmtest.S
+++ b/tests/asmtest.S
@@ -478,6 +478,24 @@ int $0x10
repz
repne
repnz
+ nop
+
+ lock ;negl (%eax)
+ wait ;pushf
+ rep ;stosb
+ repe ;lodsb
+ repz ;cmpsb
+ repne;movsb
+ repnz;outsb
+
+ /* handle one-line prefix + ops */
+ lock negl (%eax)
+ wait pushf
+ rep stosb
+ repe lodsb
+ repz cmpsb
+ repne movsb
+ repnz outsb
invd
wbinvd