summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-25 22:22:07 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-25 22:22:07 -0800
commitfb3f4e6ddbb00dea78cdccc71b824d829dc058de (patch)
treedff0693143ac65e803d833c8d51e6ba0d5144ae2 /test
parentc5473121afc4025669ef4b86b99bdbfc7a46c44d (diff)
downloadnasm-fb3f4e6ddbb00dea78cdccc71b824d829dc058de.tar.gz
nasm-fb3f4e6ddbb00dea78cdccc71b824d829dc058de.tar.bz2
nasm-fb3f4e6ddbb00dea78cdccc71b824d829dc058de.zip
HLE: Change NOHLE to be an instruction flag
The way our matching system works we have to make NOHLE an instruction flag rather than an byte code; by the time we run the byte code interpreter we have already picked an instruction pattern once and for all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'test')
-rw-r--r--test/hle.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/hle.asm b/test/hle.asm
new file mode 100644
index 0000000..e93b0b9
--- /dev/null
+++ b/test/hle.asm
@@ -0,0 +1,15 @@
+ bits 32
+
+ xacquire lock add [esi],eax
+ xacquire xchg [eax],ebx
+ xrelease lock mov [eax],ecx
+ xrelease mov [eax],ecx
+ xacquire add ecx,[eax]
+ xrelease mov [eax],ecx
+
+ ; Different opcodes!
+ mov [sym],eax
+ xrelease mov [sym],eax
+ xacquire mov [sym],eax
+
+sym dd 0