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
25 import jdk.test.lib.Asserts;
26 import jdk.test.lib.Platform;
27 import jdk.test.lib.Utils;
28 import sun.hotspot.code.NMethod;
29 import sun.hotspot.cpuinfo.CPUInfo;
30
31 import java.lang.reflect.Executable;
32 import java.lang.reflect.Method;
33 import java.util.concurrent.Callable;
34 import java.util.function.Function;
35
36 public class BmiIntrinsicBase extends CompilerWhiteBoxTest {
37
38 protected BmiIntrinsicBase(BmiTestCase testCase) {
39 super(testCase);
40 }
41
42 public static void verifyTestCase(Function<Method, BmiTestCase> constructor, Method... methods) throws Exception {
43 for (Method method : methods) {
44 new BmiIntrinsicBase(constructor.apply(method)).test();
45 }
46 }
47
48 @Override
49 protected void test() throws Exception {
50 BmiTestCase bmiTestCase = (BmiTestCase) testCase;
51
52 if (!(Platform.isX86() || Platform.isX64())) {
53 System.out.println("Unsupported platform, test SKIPPED");
54 return;
|
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
25 import jdk.test.lib.Asserts;
26 import jdk.test.lib.Platform;
27 import jdk.test.lib.Utils;
28 import sun.hotspot.code.NMethod;
29 import sun.hotspot.cpuinfo.CPUInfo;
30
31 import java.lang.reflect.Executable;
32 import java.lang.reflect.Method;
33 import java.util.concurrent.Callable;
34 import java.util.function.Function;
35 import compiler.whitebox.CompilerWhiteBoxTest;
36
37 public class BmiIntrinsicBase extends CompilerWhiteBoxTest {
38
39 protected BmiIntrinsicBase(BmiTestCase testCase) {
40 super(testCase);
41 }
42
43 public static void verifyTestCase(Function<Method, BmiTestCase> constructor, Method... methods) throws Exception {
44 for (Method method : methods) {
45 new BmiIntrinsicBase(constructor.apply(method)).test();
46 }
47 }
48
49 @Override
50 protected void test() throws Exception {
51 BmiTestCase bmiTestCase = (BmiTestCase) testCase;
52
53 if (!(Platform.isX86() || Platform.isX64())) {
54 System.out.println("Unsupported platform, test SKIPPED");
55 return;
|