tccasm: Implement compare expressions

I.e. implement < > <= >= == !=.  Comparisons are signed and result
is -1 if true, 0 if false.
This commit is contained in:
Michael Matz
2016-06-30 15:47:58 +02:00
parent ff5561ff7d
commit 1a5eacb445
2 changed files with 51 additions and 1 deletions

View File

@ -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