src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes.test/src/org/graalvm/compiler/nodes/test/NegateNodeCanonicalizationTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes.test/src/org/graalvm/compiler/nodes/test/NegateNodeCanonicalizationTest.java

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes.test/src/org/graalvm/compiler/nodes/test/NegateNodeCanonicalizationTest.java

Print this page

        

*** 20,51 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package org.graalvm.compiler.nodes.test; - import static org.graalvm.compiler.core.common.CompilationIdentifier.INVALID_COMPILATION_ID; import static org.junit.Assert.assertEquals; - import jdk.vm.ci.meta.JavaConstant; - - import org.junit.Before; - import org.junit.Test; import org.graalvm.compiler.core.common.type.ArithmeticOpTable; import org.graalvm.compiler.nodes.ConstantNode; import org.graalvm.compiler.nodes.StructuredGraph; import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; /** * This class tests that the canonicalization for constant negate nodes cover all cases. */ public class NegateNodeCanonicalizationTest { private StructuredGraph graph; @Before public void before() { ! graph = new StructuredGraph(AllowAssumptions.YES, INVALID_COMPILATION_ID); } @Test public void testByte() { byte[] a = new byte[]{Byte.MIN_VALUE, Byte.MIN_VALUE + 1, -1, 0, 1, Byte.MAX_VALUE - 1, Byte.MAX_VALUE}; --- 20,53 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package org.graalvm.compiler.nodes.test; import static org.junit.Assert.assertEquals; import org.graalvm.compiler.core.common.type.ArithmeticOpTable; + import org.graalvm.compiler.core.test.GraalCompilerTest; import org.graalvm.compiler.nodes.ConstantNode; import org.graalvm.compiler.nodes.StructuredGraph; import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; + import org.graalvm.compiler.test.AddExports; + import org.junit.Before; + import org.junit.Test; + + import jdk.vm.ci.meta.JavaConstant; /** * This class tests that the canonicalization for constant negate nodes cover all cases. */ + @AddExports("jdk.internal.vm.ci/jdk.vm.ci.meta") public class NegateNodeCanonicalizationTest { private StructuredGraph graph; @Before public void before() { ! graph = new StructuredGraph.Builder(GraalCompilerTest.getInitialOptions(), AllowAssumptions.YES).build(); } @Test public void testByte() { byte[] a = new byte[]{Byte.MIN_VALUE, Byte.MIN_VALUE + 1, -1, 0, 1, Byte.MAX_VALUE - 1, Byte.MAX_VALUE};
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes.test/src/org/graalvm/compiler/nodes/test/NegateNodeCanonicalizationTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File