File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2727
2828import org .junit .Test ;
2929
30- import jdk .graal .compiler .core .common .NumUtil ;
3130import jdk .graal .compiler .nodes .StructuredGraph ;
3231import jdk .vm .ci .meta .ResolvedJavaMethod ;
3332
@@ -102,7 +101,9 @@ public void testByteMaxEqualsToLessThanSymbolic() {
102101 }
103102
104103 public static boolean byteUMaxEqualsToLessThanSnippet (ByteHolder holder ) {
105- return NumUtil .maxUnsigned (holder .b & 0xff , 7 ) == 7 ;
104+ byte b = holder .b ;
105+ int result = Integer .compareUnsigned (b & 0xff , 7 ) < 0 ? 7 : b & 0xff ;
106+ return result == 7 ;
106107 }
107108
108109 public static boolean byteUMaxEqualsToLessThanReference (ByteHolder holder ) {
@@ -128,7 +129,9 @@ public void testByteMinEqualsToLessThan() {
128129 }
129130
130131 public static boolean byteUMinEqualsToLessThanSnippet (ByteHolder holder ) {
131- return NumUtil .minUnsigned (holder .b & 0xff , 7 ) == 7 ;
132+ byte b = holder .b ;
133+ int result = Integer .compareUnsigned (b & 0xff , 7 ) > 0 ? 7 : b & 0xff ;
134+ return result == 7 ;
132135 }
133136
134137 public static boolean byteUMinEqualsToLessThanReference (ByteHolder holder ) {
You can’t perform that action at this time.
0 commit comments