Handbook
Glossary
test-instruction? ( -- ? )
CPU architecture description model
Prev:
fused-unboxing? ( -- ? )
Next:
%add ( dst src1 src2 -- )
Vocabulary
cpu
.
architecture
Inputs
None
Outputs
?
a
boolean
Word description
Does the current architecture have a test instruction? Used on x86 to rewrite some
CMP
instructions to less expensive
TEST
s.
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
test-instruction?
cpu
( -- ? )
Methods
USING:
cpu.architecture
system
;
M:
arm.64
test-instruction?
t
;
USING:
cpu.architecture
kernel
;
M:
object
test-instruction?
f
;
USING:
cpu.architecture
system
;
M:
x86
test-instruction?
t
;