Handbook
Glossary
%test-imm-branch ( label src1 src2 cc -- )
Vocabulary
cpu
.
architecture
Inputs
label
branch destination
src1
register
src2
immediate
cc
comparison symbol
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 src1 src2 cc -- )
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
;