< prev index next >

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

Print this page

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









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

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