< prev index next >
src/cpu/x86/vm/assembler_x86.cpp
Print this page
*** 2934,2943 ****
--- 2934,2951 ----
NOT_LP64(assert(dst->has_byte_register(), "must have byte register"));
(void) prefix_and_encode(dst->encoding(), true);
emit_arith_b(0xF6, 0xC0, dst, imm8);
}
+ void Assembler::testb(Address dst, int imm8) {
+ InstructionMark im(this);
+ prefix(dst);
+ emit_int8((unsigned char)0xF6);
+ emit_operand(rax, dst, 1);
+ emit_int8(imm8);
+ }
+
void Assembler::testl(Register dst, int32_t imm32) {
// not using emit_arith because test
// doesn't support sign-extension of
// 8bit operands
int encode = dst->encoding();
< prev index next >