8213473: Replace testB_mem_imm matcher with testUB_mem_imm
authorrkennke
Fri, 09 Nov 2018 10:38:07 +0100
changeset 52470 656d2f222b42
parent 52469 190b77982361
child 52471 04d7e790aa2e
8213473: Replace testB_mem_imm matcher with testUB_mem_imm Reviewed-by: kvn, roland
src/hotspot/cpu/x86/x86_64.ad
--- a/src/hotspot/cpu/x86/x86_64.ad	Fri Nov 09 12:47:20 2018 +0530
+++ b/src/hotspot/cpu/x86/x86_64.ad	Fri Nov 09 10:38:07 2018 +0100
@@ -11925,9 +11925,9 @@
   ins_pipe(ialu_cr_reg_mem);
 %}
 
-instruct testB_mem_imm(rFlagsReg cr, memory mem, immI8 imm, immI0 zero)
-%{
-  match(Set cr (CmpI (AndI (LoadB mem) imm) zero));
+instruct testUB_mem_imm(rFlagsReg cr, memory mem, immU8 imm, immI0 zero)
+%{
+  match(Set cr (CmpI (AndI (LoadUB mem) imm) zero));
 
   ins_cost(125);
   format %{ "testb   $mem, $imm" %}