Skip to content
Permalink
Browse files

8239363: PPC64: Wrong code generation after JDK-8183574

Reviewed-by: stuefe, stefank, lucy
  • Loading branch information
Martin Doerr
Martin Doerr committed Feb 19, 2020
1 parent 09f5194 commit 6015cab798075ec22d47839a2d79ca9efca474e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/cpu/ppc/assembler_ppc.cpp
@@ -81,7 +81,7 @@ int Assembler::branch_destination(int inst, int pos) {
void Assembler::andi(Register a, Register s, const long ui16) {
if (is_power_of_2(((jlong) ui16)+1)) {
// pow2minus1
clrldi(a, s, 64-log2((((jlong) ui16)+1)));
clrldi(a, s, 64-log2_long((((jlong) ui16)+1)));
} else if (is_power_of_2((jlong) ui16)) {
// pow2
rlwinm(a, s, 0, 31-log2_long((jlong) ui16), 31-log2_long((jlong) ui16));

0 comments on commit 6015cab

Please sign in to comment.