8239363: PPC64: Wrong code generation after JDK-8183574

Reviewed-by: stuefe, stefank, lucy
This commit is contained in:
Martin Doerr 2020-02-19 09:40:38 +01:00
parent 09f5194d38
commit 6015cab798

View File

@ -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));