< prev index next >

test/compiler/intrinsics/mathexact/sanity/IntrinsicBase.java

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import jdk.test.lib.Platform;
  25 import intrinsics.Verifier;
  26 
  27 import java.io.FileOutputStream;
  28 import java.lang.reflect.Executable;
  29 import java.util.Properties;

  30 
  31 public abstract class IntrinsicBase extends CompilerWhiteBoxTest {
  32     protected String javaVmName;
  33     protected String useMathExactIntrinsics;
  34 
  35     protected IntrinsicBase(TestCase testCase) {
  36         super(testCase);
  37         javaVmName = System.getProperty("java.vm.name");
  38         useMathExactIntrinsics = getVMOption("UseMathExactIntrinsics");
  39     }
  40 
  41     @Override
  42     protected void test() throws Exception {
  43         //java.lang.Math should be loaded to allow a compilation of the methods that use Math's method
  44         System.out.println("class java.lang.Math should be loaded. Proof: " + Math.class);
  45         printEnvironmentInfo();
  46 
  47         int expectedIntrinsicCount = 0;
  48 
  49         switch (MODE) {




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import jdk.test.lib.Platform;
  25 import intrinsics.Verifier;
  26 
  27 import java.io.FileOutputStream;
  28 import java.lang.reflect.Executable;
  29 import java.util.Properties;
  30 import compiler.whitebox.CompilerWhiteBoxTest;
  31 
  32 public abstract class IntrinsicBase extends CompilerWhiteBoxTest {
  33     protected String javaVmName;
  34     protected String useMathExactIntrinsics;
  35 
  36     protected IntrinsicBase(TestCase testCase) {
  37         super(testCase);
  38         javaVmName = System.getProperty("java.vm.name");
  39         useMathExactIntrinsics = getVMOption("UseMathExactIntrinsics");
  40     }
  41 
  42     @Override
  43     protected void test() throws Exception {
  44         //java.lang.Math should be loaded to allow a compilation of the methods that use Math's method
  45         System.out.println("class java.lang.Math should be loaded. Proof: " + Math.class);
  46         printEnvironmentInfo();
  47 
  48         int expectedIntrinsicCount = 0;
  49 
  50         switch (MODE) {


< prev index next >