8213473: Replace testB_mem_imm matcher with testUB_mem_imm

Reviewed-by: kvn, roland
This commit is contained in:
Roman Kennke 2018-11-09 10:38:07 +01:00
parent 06383ba3a1
commit 617ccd6b92

View File

@ -11925,9 +11925,9 @@ instruct compB_mem_imm(rFlagsReg cr, memory mem, immI8 imm)
ins_pipe(ialu_cr_reg_mem);
%}
instruct testB_mem_imm(rFlagsReg cr, memory mem, immI8 imm, immI0 zero)
instruct testUB_mem_imm(rFlagsReg cr, memory mem, immU8 imm, immI0 zero)
%{
match(Set cr (CmpI (AndI (LoadB mem) imm) zero));
match(Set cr (CmpI (AndI (LoadUB mem) imm) zero));
ins_cost(125);
format %{ "testb $mem, $imm" %}