Skip to content

Commit aa392a0

Browse files
committed
[GR-60374] Mark SHA3.implCompress0 intrinsic GraalOnly on JDK21.
PullRequest: graal/19550
2 parents 2e386db + e011568 commit aa392a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/StandardGraphBuilderPlugins.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
import jdk.graal.compiler.replacements.nodes.arithmetic.UnsignedMulHighNode;
227227
import jdk.graal.compiler.serviceprovider.JavaVersionUtil;
228228
import jdk.graal.compiler.serviceprovider.SpeculationReasonGroup;
229+
import jdk.vm.ci.amd64.AMD64;
229230
import jdk.vm.ci.code.Architecture;
230231
import jdk.vm.ci.code.BytecodePosition;
231232
import jdk.vm.ci.code.CodeUtil;
@@ -2615,6 +2616,11 @@ public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Rec
26152616
return true;
26162617
}
26172618
}
2619+
2620+
@Override
2621+
public boolean isGraalOnly() {
2622+
return JavaVersionUtil.JAVA_SPEC == 21 && arch instanceof AMD64;
2623+
}
26182624
});
26192625
}
26202626

0 commit comments

Comments
 (0)