From 1a5eacb445a0116722e88e1a8a3e88e9d4127d2b Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Thu, 30 Jun 2016 15:47:58 +0200 Subject: tccasm: Implement compare expressions I.e. implement < > <= >= == !=. Comparisons are signed and result is -1 if true, 0 if false. --- tests/asmtest.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/asmtest.S b/tests/asmtest.S index 652e50b..79419b9 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -740,6 +740,12 @@ nop .word 164, 0 .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 -- cgit v1.3.1