< prev index next >

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

Print this page

 751         iFld = 3;
 752         lFld = 4L;
 753         fFld = 5.0f;
 754         dFld = 6.0;
 755     }
 756 
 757     @Test
 758     @IR(counts = {IRNode.STORE, "2", IRNode.STORE_I, "1", IRNode.STORE_L, "1",
 759                   IRNode.STORE_OF_CLASS, "GoodCount", "1", IRNode.STORE_L_OF_CLASS, "GoodCount", "1",
 760                   IRNode.STORE_OF_CLASS, "ir_framework/tests/MyClass", "1",
 761                   IRNode.STORE_I_OF_CLASS, "ir_framework/tests/MyClass", "1",
 762                   IRNode.STORE_OF_CLASS, "ir_framework/tests/GoodCount", "1",
 763                   IRNode.STORE_L_OF_CLASS, "ir_framework/tests/GoodCount", "1",
 764                   IRNode.STORE_OF_FIELD, "x", "2"})
 765     public void good5() {
 766         x = 3; // long
 767         myClass.x = 4; // int
 768     }
 769 
 770     @Test
 771     @IR(counts = {IRNode.STORE_OF_FIELD, "myClassEmpty", "1", IRNode.STORE_OF_CLASS, "GoodCount", "1",
 772                   IRNode.STORE_OF_CLASS, "/GoodCount", "1", IRNode.STORE_OF_CLASS, "MyClassEmpty", "0"},









 773         failOn = {IRNode.STORE_OF_CLASS, "MyClassEmpty"})
 774     public void good6() {
 775         myClassEmpty = new MyClassEmpty();
 776     }
 777 
 778     @Test
 779     @IR(counts = {IRNode.STORE_OF_FIELD, "iFld", "3", IRNode.STORE_OF_CLASS, "GoodCount", "0",
 780                   IRNode.STORE_OF_CLASS, "MyClass", "2", IRNode.STORE_OF_CLASS, "MyClassSub", "1",
 781                   IRNode.STORE, "3"},
 782         failOn = {IRNode.STORE_OF_CLASS, "GoodCount"})
 783     public void good7() {
 784         myClass.iFld = 1;
 785         myClassSubPoly.iFld = 2;
 786         myClassSub.iFld = 3;
 787     }
 788 
 789     @Test
 790     @IR(counts = {IRNode.LOAD, "1", IRNode.STORE, "1"})
 791     public void good8() {
 792         result = iFld;

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