changeset 52492:656d2f222b42

8213473: Replace testB_mem_imm matcher with testUB_mem_imm Reviewed-by: kvn, roland
author rkennke
date Fri, 09 Nov 2018 10:38:07 +0100
parents 190b77982361
children 04d7e790aa2e
files src/hotspot/cpu/x86/x86_64.ad
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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" %}