< prev index next >

test/compiler/intrinsics/bmi/verifycode/LZcntTestL.java

Print this page
rev 8994 : 8134579: [TESTBUG] Some bmi tests fail if can_access_local_variables is on.
Summary: Others fail because of uncommon trap. Also fix test file names.


  29  *          java.management
  30  * @build LZcntTestL
  31  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  32  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  33  * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  34  *                   -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountLeadingZerosInstruction LZcntTestL
  35  */
  36 
  37 import java.lang.reflect.Method;
  38 
  39 public class LZcntTestL extends LZcntTestI {
  40 
  41     protected LZcntTestL(Method method) {
  42         super(method);
  43         isLongOperation = true;
  44     }
  45 
  46     public static void main(String[] args) throws Exception {
  47         // j.l.Integer and Long should be loaded to allow a compilation of the methods that use their methods
  48         System.out.println("classes java.lang.Long should be loaded. Proof: " + Long.class);


  49         BmiIntrinsicBase.verifyTestCase(LZcntTestL::new, TestLzcntL.LzcntLExpr.class.getDeclaredMethods());
  50     }
  51 }


  29  *          java.management
  30  * @build LZcntTestL
  31  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  32  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  33  * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  34  *                   -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountLeadingZerosInstruction LZcntTestL
  35  */
  36 
  37 import java.lang.reflect.Method;
  38 
  39 public class LZcntTestL extends LZcntTestI {
  40 
  41     protected LZcntTestL(Method method) {
  42         super(method);
  43         isLongOperation = true;
  44     }
  45 
  46     public static void main(String[] args) throws Exception {
  47         // j.l.Integer and Long should be loaded to allow a compilation of the methods that use their methods
  48         System.out.println("classes java.lang.Long should be loaded. Proof: " + Long.class);
  49         // Avoid uncommon traps.
  50         System.out.println("Num leading zeroes: " + new  TestLzcntL.LzcntLExpr().longExpr(12341341));
  51         BmiIntrinsicBase.verifyTestCase(LZcntTestL::new, TestLzcntL.LzcntLExpr.class.getDeclaredMethods());
  52     }
  53 }
< prev index next >