8259236: C2 compilation fails with assert(is_power_of_2(value)) failed: value must be a power of 2: 8000000000000000

Reviewed-by: thartmann
This commit is contained in:
Claes Redestad 2021-01-05 16:41:17 +00:00
parent 82bdbfd7fa
commit d5aa49d154

View File

@ -9600,7 +9600,7 @@ instruct btrL_mem_imm(memory dst, immL_NotPow2 con, rFlagsReg cr)
ins_cost(125);
format %{ "btrq $dst, log2(not($con))\t# long" %}
ins_encode %{
__ btrq($dst$$Address, log2i_exact(~$con$$constant));
__ btrq($dst$$Address, log2i_exact((julong)~$con$$constant));
%}
ins_pipe(ialu_mem_imm);
%}