8297384: Add IR tests for existing idealizations of arithmetic nodes

Reviewed-by: chagedorn
This commit is contained in:
Zhiqiang Zang 2022-11-25 08:17:44 +00:00 committed by Christian Hagedorn
parent cfe5a3716e
commit fd910f77bc
11 changed files with 596 additions and 77 deletions

View file

@ -593,6 +593,11 @@ public class IRNode {
afterBarrierExpansionToBeforeMatching(MACRO_LOGIC_V, "MacroLogicV");
}
public static final String MAX = PREFIX + "MAX" + POSTFIX;
static {
beforeMatchingNameRegex(MAX, "Max(I|L)");
}
public static final String MAX_I = PREFIX + "MAX_I" + POSTFIX;
static {
beforeMatchingNameRegex(MAX_I, "MaxI");
@ -613,6 +618,11 @@ public class IRNode {
beforeMatchingNameRegex(MEMBAR_STORESTORE, "MemBarStoreStore");
}
public static final String MIN = PREFIX + "MIN" + POSTFIX;
static {
beforeMatchingNameRegex(MIN, "Min(I|L)");
}
public static final String MIN_I = PREFIX + "MIN_I" + POSTFIX;
static {
beforeMatchingNameRegex(MIN_I, "MinI");
@ -752,6 +762,16 @@ public class IRNode {
beforeMatchingNameRegex(ROUND_VF, "RoundVF");
}
public static final String ROTATE_LEFT = PREFIX + "ROTATE_LEFT" + POSTFIX;
static {
beforeMatchingNameRegex(ROTATE_LEFT, "RotateLeft");
}
public static final String ROTATE_RIGHT = PREFIX + "ROTATE_RIGHT" + POSTFIX;
static {
beforeMatchingNameRegex(ROTATE_RIGHT, "RotateRight");
}
public static final String RSHIFT = PREFIX + "RSHIFT" + POSTFIX;
static {
beforeMatchingNameRegex(RSHIFT, "RShift(I|L)");