< prev index next >

test/compiler/c2/Test5057225.java

Print this page

        

*** 25,37 **** * @test * @bug 5057225 * @summary Remove useless I2L conversions * @modules java.base/jdk.internal.misc * @library /testlibrary ! * @run main/othervm -Xcomp -XX:CompileOnly=Test5057225.doload Test5057225 */ import jdk.test.lib.Utils; public class Test5057225 { static byte[] ba = new byte[] { -1 }; static short[] sa = new short[] { -1 }; --- 25,41 ---- * @test * @bug 5057225 * @summary Remove useless I2L conversions * @modules java.base/jdk.internal.misc * @library /testlibrary ! * ! * @run main/othervm -Xcomp ! * -XX:CompileCommand=compileonly,compiler.c2.Test5057225::doload ! * compiler.c2.Test5057225 */ + package compiler.c2; import jdk.test.lib.Utils; public class Test5057225 { static byte[] ba = new byte[] { -1 }; static short[] sa = new short[] { -1 };
*** 67,87 **** }; public static void main(String[] args) throws Exception { for (int i = 0; i < BYTE_MASKS.length; i++) { System.setProperty("value", "" + BYTE_MASKS[i]); ! loadAndRunClass("Test5057225$loadUB2L"); } for (int i = 0; i < SHORT_MASKS.length; i++) { System.setProperty("value", "" + SHORT_MASKS[i]); ! loadAndRunClass("Test5057225$loadUS2L"); } for (int i = 0; i < INT_MASKS.length; i++) { System.setProperty("value", "" + INT_MASKS[i]); ! loadAndRunClass("Test5057225$loadUI2L"); } } static void check(long result, long expected) { if (result != expected) --- 71,91 ---- }; public static void main(String[] args) throws Exception { for (int i = 0; i < BYTE_MASKS.length; i++) { System.setProperty("value", "" + BYTE_MASKS[i]); ! loadAndRunClass(Test5057225.class.getName() + "$loadUB2L"); } for (int i = 0; i < SHORT_MASKS.length; i++) { System.setProperty("value", "" + SHORT_MASKS[i]); ! loadAndRunClass(Test5057225.class.getName() + "$loadUS2L"); } for (int i = 0; i < INT_MASKS.length; i++) { System.setProperty("value", "" + INT_MASKS[i]); ! loadAndRunClass(Test5057225.class.getName() + "$loadUI2L"); } } static void check(long result, long expected) { if (result != expected)
< prev index next >