tccasm: Implement compare expressions
I.e. implement < > <= >= == !=. Comparisons are signed and result is -1 if true, 0 if false.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user