aboutsummaryrefslogtreecommitdiff
path: root/tests/asmtest.S
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-06-30 15:47:58 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:07 +0100
commit1a5eacb445a0116722e88e1a8a3e88e9d4127d2b (patch)
tree6330bf403930d823891a10d45020476ad583b085 /tests/asmtest.S
parentff5561ff7d699eb9e30e95f1e2cfd1e98e5a990d (diff)
downloadtinycc-1a5eacb445a0116722e88e1a8a3e88e9d4127d2b.tar.gz
tinycc-1a5eacb445a0116722e88e1a8a3e88e9d4127d2b.tar.bz2
tccasm: Implement compare expressions
I.e. implement < > <= >= == !=. Comparisons are signed and result is -1 if true, 0 if false.
Diffstat (limited to 'tests/asmtest.S')
-rw-r--r--tests/asmtest.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S
index 652e50b..79419b9 100644
--- a/tests/asmtest.S
+++ b/tests/asmtest.S
@@ -741,6 +741,12 @@ nop
.org 2b+32
.quad 1b
.popsection
+3: mov %eax,%ecx
+4:
+.pushsection .text.three, "ax"
+nop
+.skip (-((4b-3b) > 0) * 2) , 0x90
+.popsection
movd %esi, %mm1
movd %edi, %xmm2