From 6015cab798075ec22d47839a2d79ca9efca474e3 Mon Sep 17 00:00:00 2001 From: Martin Doerr Date: Wed, 19 Feb 2020 09:40:38 +0100 Subject: [PATCH] 8239363: PPC64: Wrong code generation after JDK-8183574 Reviewed-by: stuefe, stefank, lucy --- src/hotspot/cpu/ppc/assembler_ppc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/cpu/ppc/assembler_ppc.cpp b/src/hotspot/cpu/ppc/assembler_ppc.cpp index bee11245f5d..105790c6047 100644 --- a/src/hotspot/cpu/ppc/assembler_ppc.cpp +++ b/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));