< prev index next >

test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestIRMatching.java

Print this page

 759         iFld = 3;
 760         lFld = 4L;
 761         fFld = 5.0f;
 762         dFld = 6.0;
 763     }
 764 
 765     @Test
 766     @IR(counts = {IRNode.STORE, "2", IRNode.STORE_I, "1", IRNode.STORE_L, "1",
 767                   IRNode.STORE_OF_CLASS, "GoodCount", "1", IRNode.STORE_L_OF_CLASS, "GoodCount", "1",
 768                   IRNode.STORE_OF_CLASS, "ir_framework/tests/MyClass", "1",
 769                   IRNode.STORE_I_OF_CLASS, "ir_framework/tests/MyClass", "1",
 770                   IRNode.STORE_OF_CLASS, "ir_framework/tests/GoodCount", "1",
 771                   IRNode.STORE_L_OF_CLASS, "ir_framework/tests/GoodCount", "1",
 772                   IRNode.STORE_OF_FIELD, "x", "2"})
 773     public void good5() {
 774         x = 3; // long
 775         myClass.x = 4; // int
 776     }
 777 
 778     @Test
 779     @IR(counts = {IRNode.STORE_OF_FIELD, "myClassEmpty", "1", IRNode.STORE_OF_CLASS, "GoodCount", "1",
 780                   IRNode.STORE_OF_CLASS, "/GoodCount", "1", IRNode.STORE_OF_CLASS, "MyClassEmpty", "0"},









 781         failOn = {IRNode.STORE_OF_CLASS, "MyClassEmpty"})
 782     public void good6() {
 783         myClassEmpty = new MyClassEmpty();
 784     }
 785 
 786     @Test
 787     @IR(counts = {IRNode.STORE_OF_FIELD, "iFld", "3", IRNode.STORE_OF_CLASS, "GoodCount", "0",
 788                   IRNode.STORE_OF_CLASS, "MyClass", "2", IRNode.STORE_OF_CLASS, "MyClassSub", "1",
 789                   IRNode.STORE, "3"},
 790         failOn = {IRNode.STORE_OF_CLASS, "GoodCount"})
 791     public void good7() {
 792         myClass.iFld = 1;
 793         myClassSubPoly.iFld = 2;
 794         myClassSub.iFld = 3;
 795     }
 796 
 797     @Test
 798     @IR(counts = {IRNode.LOAD, "1", IRNode.STORE, "1"})
 799     public void good8() {
 800         result = iFld;

 759         iFld = 3;
 760         lFld = 4L;
 761         fFld = 5.0f;
 762         dFld = 6.0;
 763     }
 764 
 765     @Test
 766     @IR(counts = {IRNode.STORE, "2", IRNode.STORE_I, "1", IRNode.STORE_L, "1",
 767                   IRNode.STORE_OF_CLASS, "GoodCount", "1", IRNode.STORE_L_OF_CLASS, "GoodCount", "1",
 768                   IRNode.STORE_OF_CLASS, "ir_framework/tests/MyClass", "1",
 769                   IRNode.STORE_I_OF_CLASS, "ir_framework/tests/MyClass", "1",
 770                   IRNode.STORE_OF_CLASS, "ir_framework/tests/GoodCount", "1",
 771                   IRNode.STORE_L_OF_CLASS, "ir_framework/tests/GoodCount", "1",
 772                   IRNode.STORE_OF_FIELD, "x", "2"})
 773     public void good5() {
 774         x = 3; // long
 775         myClass.x = 4; // int
 776     }
 777 
 778     @Test
 779     @IR(counts = {
 780             IRNode.STORE_OF_FIELD, "myClassEmpty", "1",
 781             IRNode.STORE_OF_CLASS, "oodCount", "0",
 782             IRNode.STORE_OF_CLASS, "GoodCount", "1",
 783             IRNode.STORE_OF_CLASS, "/GoodCount", "1",
 784             IRNode.STORE_OF_CLASS, "tests/GoodCount", "1",
 785             IRNode.STORE_OF_CLASS, "/tests/GoodCount", "1",
 786             IRNode.STORE_OF_CLASS, "ir_framework/tests/GoodCount", "1",
 787             IRNode.STORE_OF_CLASS, "/ir_framework/tests/GoodCount", "0",
 788             IRNode.STORE_OF_CLASS, "MyClassEmpty", "0"
 789         },
 790         failOn = {IRNode.STORE_OF_CLASS, "MyClassEmpty"})
 791     public void good6() {
 792         myClassEmpty = new MyClassEmpty();
 793     }
 794 
 795     @Test
 796     @IR(counts = {IRNode.STORE_OF_FIELD, "iFld", "3", IRNode.STORE_OF_CLASS, "GoodCount", "0",
 797                   IRNode.STORE_OF_CLASS, "MyClass", "2", IRNode.STORE_OF_CLASS, "MyClassSub", "1",
 798                   IRNode.STORE, "3"},
 799         failOn = {IRNode.STORE_OF_CLASS, "GoodCount"})
 800     public void good7() {
 801         myClass.iFld = 1;
 802         myClassSubPoly.iFld = 2;
 803         myClassSub.iFld = 3;
 804     }
 805 
 806     @Test
 807     @IR(counts = {IRNode.LOAD, "1", IRNode.STORE, "1"})
 808     public void good8() {
 809         result = iFld;
< prev index next >