< prev index next >

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

Print this page

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









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

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