Handbook
Glossary
%boolean ( dst cc temp -- )
Vocabulary
cpu
.
x86
Inputs
dst
register
cc
comparision symbol
temp
temporary register
Outputs
None
Word description
Helper word for emitting conditional move instructions.
See also
CMOVL
,
CMOVLE
,
CMOVG
,
CMOVGE
,
CMOVE
,
CMOVNE
Definition
USING:
combinators
compiler.cfg.comparisons
cpu.x86.assembler
kernel
;
IN:
cpu.x86
:
%boolean
( dst cc temp -- )
swap
order-cc
{
{
cc<
[
\
CMOVL
(%boolean)
]
}
{
cc<=
[
\
CMOVLE
(%boolean)
]
}
{
cc>
[
\
CMOVG
(%boolean)
]
}
{
cc>=
[
\
CMOVGE
(%boolean)
]
}
{
cc=
[
\
CMOVE
(%boolean)
]
}
{
cc/=
[
\
CMOVNE
(%boolean)
]
}
}
case
;