--- old/src/share/vm/adlc/formssel.cpp 2021-01-25 19:30:14.367610743 +0000 +++ new/src/share/vm/adlc/formssel.cpp 2021-01-25 19:30:14.232609324 +0000 @@ -23,6 +23,7 @@ */ // FORMS.CPP - Definitions for ADL Parser Forms Classes +#include "utilities/macros.hpp" #include "adlc.hpp" //==============================Instructions=================================== @@ -1242,7 +1243,8 @@ !is_short_branch() && // Don't match another short branch variant reduce_result() != NULL && strcmp(reduce_result(), short_branch->reduce_result()) == 0 && - _matrule->equivalent(AD.globalNames(), short_branch->_matrule)) { + _matrule->equivalent(AD.globalNames(), short_branch->_matrule) + AARCH64_ONLY(&& equivalent_predicates(this, short_branch))) { // The instructions are equivalent. // Now verify that both instructions have the same parameters and