annotate test/compiler/intrinsics/bmi/Expr.java @ 17778:a48e16541e6b

8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions Reviewed-by: iveresov, kvn, iignatyev Contributed-by: filipp.zhinkin@oracle.com
author iignatyev
date Sat, 22 Mar 2014 00:26:48 +0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17778
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
1 /*
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
4 *
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
7 * published by the Free Software Foundation.
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
8 *
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
13 * accompanied this code).
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
14 *
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
18 *
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
21 * questions.
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
22 *
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
23 */
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
24
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
25 /**
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
26 * Expression that should be replaced by particular instrinsic
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
27 * or intruction during compilation.
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
28 */
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
29
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
30 public abstract class Expr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
31
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
32 public static class MemI {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
33 public MemI(int i) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
34 this.value = i;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
35 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
36
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
37 public int value;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
38 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
39
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
40 public static class MemL {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
41 public MemL(long l) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
42 this.value = l;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
43 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
44
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
45 public long value;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
46 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
47
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
48 public boolean isUnaryArgumentSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
49 return false;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
50 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
51
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
52 public boolean isIntExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
53 return false;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
54 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
55
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
56 public boolean isBinaryArgumentSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
57 return false;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
58 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
59
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
60 public boolean isLongExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
61 return false;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
62 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
63
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
64 public boolean isMemExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
65 return false;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
66 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
67
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
68 public int intExpr(int reg) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
69 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
70 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
71
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
72 public int intExpr(MemI mem) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
73 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
74 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
75
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
76 public int intExpr(int a, int b) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
77 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
78 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
79
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
80 public int intExpr(int a, MemI b) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
81 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
82 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
83
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
84 public int intExpr(MemI a, int b) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
85 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
86 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
87
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
88 public int intExpr(MemI a, MemI b) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
89 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
90 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
91
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
92 public long longExpr(long reg) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
93 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
94 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
95
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
96 public long longExpr(MemL mem) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
97 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
98 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
99
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
100 public long longExpr(long a, long b) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
101 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
102 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
103
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
104 public long longExpr(long a, MemL b) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
105 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
106 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
107
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
108 public long longExpr(MemL a, long b) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
109 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
110 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
111
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
112 public long longExpr(MemL a, MemL b) {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
113 throw new UnsupportedOperationException();
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
114 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
115
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
116 public static class BMIExpr extends Expr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
117
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
118 public boolean isMemExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
119 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
120 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
121 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
122
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
123 public static class BMIBinaryExpr extends BMIExpr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
124
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
125 public boolean isBinaryArgumentSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
126 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
127 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
128
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
129 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
130
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
131 public static class BMIUnaryExpr extends BMIExpr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
132 public boolean isUnaryArgumentSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
133 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
134 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
135 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
136
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
137 public static class BMIBinaryIntExpr extends BMIBinaryExpr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
138 public boolean isIntExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
139 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
140 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
141 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
142
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
143 public static class BMIBinaryLongExpr extends BMIBinaryExpr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
144 public boolean isLongExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
145 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
146 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
147 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
148
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
149 public static class BMIUnaryIntExpr extends BMIUnaryExpr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
150 public boolean isIntExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
151 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
152 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
153 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
154
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
155 public static class BMIUnaryLongExpr extends BMIUnaryExpr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
156 public boolean isLongExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
157 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
158 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
159 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
160
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
161 public static class BitCountingExpr extends Expr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
162 public boolean isUnaryArgumentSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
163 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
164 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
165 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
166
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
167 public static class BitCountingIntExpr extends BitCountingExpr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
168 public boolean isIntExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
169 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
170 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
171 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
172
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
173 public static class BitCountingLongExpr extends BitCountingExpr {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
174 public boolean isLongExprSupported() {
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
175 return true;
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
176 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
177 }
a48e16541e6b 8035857: Add tests to verify correctness of operations with BMI1 and LZCNT instructions
iignatyev
parents:
diff changeset
178 }