* Added putfieldconst zero for risc architectures
authortwisti <none@none>
Fri, 17 Jun 2005 11:24:00 +0000 (11:24 +0000)
committertwisti <none@none>
Fri, 17 Jun 2005 11:24:00 +0000 (11:24 +0000)
tests/codepatching/test.java

index 66dd18f4e2839309e8f1349b59176fac5de568a7..8d2d1fd02617ea07d25cf41b57ee0c20395d49f8 100644 (file)
@@ -315,6 +315,18 @@ public class test extends Thread {
             failed(t);
         }
  
+        try {
+            p("putfieldconst zero (I,F): ");
+            if (doit) {
+                putfieldconstIF pfcif = new putfieldconstIF();
+                pfcif.i = 0;
+                check(pfcif.i, 0);
+            } else
+                ok();
+        } catch (Throwable t) {
+            failed(t);
+        }
         try {
             p("putfieldconst (J,D,L): ");
             if (doit) {
@@ -326,6 +338,18 @@ public class test extends Thread {
         } catch (Throwable t) {
             failed(t);
         }
+
+        try {
+            p("putfieldconst zero (J,D,L): ");
+            if (doit) {
+                putfieldconstJDL pfcjdl = new putfieldconstJDL();
+                pfcjdl.l = 0L;
+                check(pfcjdl.l, 0L);
+            } else
+                ok();
+        } catch (Throwable t) {
+            failed(t);
+        }
     }
 
     private void newarray() {