Navigation Menu

Skip to content

Commit

Permalink
8259236: C2 compilation fails with assert(is_power_of_2(value)) faile…
Browse files Browse the repository at this point in the history
…d: value must be a power of 2: 8000000000000000

Reviewed-by: thartmann
  • Loading branch information
cl4es committed Jan 5, 2021
1 parent 82bdbfd commit d5aa49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/x86/x86_64.ad
Expand Up @@ -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);
%}
Expand Down

1 comment on commit d5aa49d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.