public class CountedLoopTest extends GraalCompilerTest
Modifier and Type | Class and Description |
---|---|
private static interface |
CountedLoopTest.IVProperty |
private static class |
CountedLoopTest.IVPropertyNode |
private static class |
CountedLoopTest.Result |
GraalCompilerTest.ArgSupplier
GraalTest.MultiCauseAssertionError
lastCompiledGraph
Constructor and Description |
---|
CountedLoopTest() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkMidTierGraph(StructuredGraph graph)
Can be overridden by unit tests to verify properties of the graph.
|
void |
decrement1() |
void |
decrement2() |
void |
decrement3() |
void |
decrementEq1() |
void |
decrementEq2() |
void |
decrementEq3() |
static CountedLoopTest.Result |
decrementEqSnippet(int start,
int limit,
int step) |
static CountedLoopTest.Result |
decrementSnippet(int start,
int limit,
int step) |
private static int |
get(CountedLoopTest.IVProperty property,
int iv)
Get a property of an induction variable.
|
protected GraphBuilderConfiguration.Plugins |
getDefaultGraphBuilderPlugins() |
protected static int |
getIntrinsic(CountedLoopTest.IVProperty property,
int iv) |
void |
increment1() |
void |
increment2() |
void |
increment3() |
void |
incrementEq1() |
void |
incrementEq2() |
void |
incrementEq3() |
static CountedLoopTest.Result |
incrementEqSnippet(int start,
int limit,
int step) |
static CountedLoopTest.Result |
incrementSnippet(int start,
int limit,
int step) |
void |
testTwoVariables() |
static CountedLoopTest.Result |
twoVariablesSnippet() |
addMethod, after, afterTest, applyArgSuppliers, argsWithReceiver, asResolvedJavaMethod, assertConstantReturn, assertEquals, assertEquals, assertEquals, before, beforeTest, branchProbability, breakpoint, breakpoint, checkArgs, checkHighTierGraph, checkLowTierGraph, compile, countUnusedConstants, createLIRSuites, createSuites, editGraphBuilderConfiguration, executeActual, executeActualCheckDeopt, executeExpected, getBackend, getCanonicalGraphString, getCode, getCode, getCode, getCodeCache, getConstantReflection, getCustomGraphBuilderSuite, getDefaultGraphBuilderSuite, getDefaultHighTierContext, getLIRSuites, getLowerer, getMetaAccess, getNodeCountExcludingUnusedConstants, getProviders, getReplacements, getResolvedJavaMethod, getResolvedJavaMethod, getResolvedJavaMethod, getSnippetReflection, getSpeculationLog, getSuites, getTarget, initializeDebugging, invoke, isArchitecture, iterationCount, lookupMethod, parseDebug, parseEager, parseEager, parseForCompile, parseProfiled, parseProfiled, referenceInvoke, supply, test, test, testAgainstExpected, testAgainstExpected, testN
assertDeepEquals, assertDeepEquals, assertDeepEquals, assertDeepEquals, assertFalse, assertFalse, assertFalse, assertTrue, assertTrue, assertTrue, equalFloatsOrDoublesDelta, fail, getMethod, getMethod, getMethod, ulpsDelta
public CountedLoopTest()
private static int get(CountedLoopTest.IVProperty property, int iv)
property
- public static CountedLoopTest.Result incrementSnippet(int start, int limit, int step)
public void increment1()
public void increment2()
public void increment3()
public static CountedLoopTest.Result incrementEqSnippet(int start, int limit, int step)
public void incrementEq1()
public void incrementEq2()
public void incrementEq3()
public static CountedLoopTest.Result decrementSnippet(int start, int limit, int step)
public void decrement1()
public void decrement2()
public void decrement3()
public static CountedLoopTest.Result decrementEqSnippet(int start, int limit, int step)
public void decrementEq1()
public void decrementEq2()
public void decrementEq3()
public static CountedLoopTest.Result twoVariablesSnippet()
public void testTwoVariables()
protected static int getIntrinsic(CountedLoopTest.IVProperty property, int iv)
protected GraphBuilderConfiguration.Plugins getDefaultGraphBuilderPlugins()
getDefaultGraphBuilderPlugins
in class GraalCompilerTest
protected boolean checkMidTierGraph(StructuredGraph graph)
GraalCompilerTest
checkMidTierGraph
in class GraalCompilerTest
graph
- the graph at the end of MidTier