Handbook
Glossary
%test-imm-branch ( label cc src1 src2 -- )
Vocabulary
cpu
.
architecture
Inputs
label
branch destination
cc
comparison symbol
src1
register
src2
immediate
Outputs
None
Word description
Emits a TEST instruction with a register and an immediate, followed by a branch.
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
%test-imm-branch
cpu
( label cc src1 src2 -- )
Methods
USING:
cpu.architecture
kernel
system
;
M:
arm.64
%test-imm-branch
4drop
;
USING:
cpu.architecture
cpu.x86
cpu.x86.assembler
system
;
M::
x86
%test-imm-branch
( label src1 src2 cc -- )
src1 src2
TEST
label cc
%branch
;