@@ -9549,7 +9549,7 @@ instruct long_to_maskLE8_avx(vec dst, rRegL src, rRegL rtmp1, rRegL rtmp2, vec x
9549
9549
format %{ "long_to_mask_avx $dst, $src\t! using $rtmp1, $rtmp2, $xtmp as TEMP" %}
9550
9550
ins_encode %{
9551
9551
int mask_len = Matcher::vector_length(this);
9552
- int vec_enc = vector_length_encoding(mask_len*8 );
9552
+ int vec_enc = vector_length_encoding(mask_len);
9553
9553
__ vector_long_to_maskvec($dst$$XMMRegister, $src$$Register, $rtmp1$$Register,
9554
9554
$rtmp2$$Register, xnoreg, mask_len, vec_enc);
9555
9555
%}
@@ -9565,7 +9565,7 @@ instruct long_to_maskGT8_avx(vec dst, rRegL src, rRegL rtmp1, rRegL rtmp2, vec x
9565
9565
ins_encode %{
9566
9566
int mask_len = Matcher::vector_length(this);
9567
9567
assert(mask_len <= 32, "invalid mask length");
9568
- int vec_enc = vector_length_encoding(mask_len*8 );
9568
+ int vec_enc = vector_length_encoding(mask_len);
9569
9569
__ vector_long_to_maskvec($dst$$XMMRegister, $src$$Register, $rtmp1$$Register,
9570
9570
$rtmp2$$Register, $xtmp1$$XMMRegister, mask_len, vec_enc);
9571
9571
%}
@@ -9577,7 +9577,6 @@ instruct long_to_mask_evex(kReg dst, rRegL src) %{
9577
9577
match(Set dst (VectorLongToMask src));
9578
9578
format %{ "long_to_mask_evex $dst, $src\t!" %}
9579
9579
ins_encode %{
9580
- int mask_len = Matcher::vector_length(this);
9581
9580
__ kmov($dst$$KRegister, $src$$Register);
9582
9581
%}
9583
9582
ins_pipe( pipe_slow );
0 commit comments