Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8259236: C2 compilation fails with assert(is_power_of_2(value)) faile…
…d: value must be a power of 2: 8000000000000000

Reviewed-by: thartmann
  • Loading branch information
cl4es committed Jan 5, 2021
1 parent 82bdbfd commit d5aa49d15417b72bd9a87cdfd5c3fcdf3704b5cf
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);
%}

0 comments on commit d5aa49d

Please sign in to comment.