9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 /**
25 * @test
26 * @bug 6823354
27 * @summary These methods can be instrinsified by using bit scan, bit test, and population count instructions.
28 * @modules java.base/jdk.internal.misc
29 * @library /testlibrary
30 *
31 * @run main/othervm -Xcomp
32 * -XX:CompileCommand=compileonly,compiler.codegen.Test6823354::lzcomp
33 * -XX:CompileCommand=compileonly,compiler.codegen.Test6823354::tzcomp
34 * -XX:CompileCommand=compileonly,compiler.codegen.*::dolzcomp
35 * -XX:CompileCommand=compileonly,compiler.codegen.*::dotzcomp
36 * compiler.codegen.Test6823354
37 */
38
39 package compiler.codegen;
40
41 import jdk.test.lib.Utils;
42
43 public class Test6823354 {
44 // Arrays of corner case values.
45 static final int[] ia = new int[] { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE };
46 static final long[] la = new long[] { 0L, 1L, -1L, Long.MIN_VALUE, Long.MAX_VALUE };
47
48 public static void main(String[] args) throws Exception {
49 // Load the classes and the methods.
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 /**
25 * @test
26 * @bug 6823354
27 * @summary These methods can be instrinsified by using bit scan, bit test, and population count instructions.
28 * @modules java.base/jdk.internal.misc
29 * @library /test/lib
30 *
31 * @run main/othervm -Xcomp
32 * -XX:CompileCommand=compileonly,compiler.codegen.Test6823354::lzcomp
33 * -XX:CompileCommand=compileonly,compiler.codegen.Test6823354::tzcomp
34 * -XX:CompileCommand=compileonly,compiler.codegen.*::dolzcomp
35 * -XX:CompileCommand=compileonly,compiler.codegen.*::dotzcomp
36 * compiler.codegen.Test6823354
37 */
38
39 package compiler.codegen;
40
41 import jdk.test.lib.Utils;
42
43 public class Test6823354 {
44 // Arrays of corner case values.
45 static final int[] ia = new int[] { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE };
46 static final long[] la = new long[] { 0L, 1L, -1L, Long.MIN_VALUE, Long.MAX_VALUE };
47
48 public static void main(String[] args) throws Exception {
49 // Load the classes and the methods.
|