< prev index next >

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

Print this page

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









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

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