aboutsummaryrefslogtreecommitdiff
path: root/tests/asmtest.S
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-05-11 18:54:24 +0200
committerMichael Matz <matz@suse.de>2016-05-11 18:54:24 +0200
commitbd93dc6923a9fe202401666a1f2749fbdced9971 (patch)
tree0dbfb39ff75b6082d4e8bfa287b72ff1e170c678 /tests/asmtest.S
parent9645b62a65986738e6b70d748890d73daf40508b (diff)
downloadtinycc-bd93dc6923a9fe202401666a1f2749fbdced9971.tar.gz
tinycc-bd93dc6923a9fe202401666a1f2749fbdced9971.tar.bz2
x86: Improve cmov handling
cmov can accept multi sizes, but is also a OPC_TEST opcode, deal with this.
Diffstat (limited to 'tests/asmtest.S')
-rw-r--r--tests/asmtest.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S
index 0876aa8..2a9f403 100644
--- a/tests/asmtest.S
+++ b/tests/asmtest.S
@@ -474,6 +474,10 @@ fucomip %st(5), %st
cmovo 0x1000, %eax
cmovs 0x1000, %eax
cmovns %edx, %edi
+ cmovne %ax, %si
+#ifdef __x86_64__
+ cmovz %rdi,%rbx
+#endif
int $3
int $0x10