Skip to content

Commit

Permalink
8316743: RISC-V: Change UseVectorizedMismatchIntrinsic option result …
Browse files Browse the repository at this point in the history
…to warning

Backport-of: 750da0012931656cfd55f3e67c3f49ad7363ab8e
  • Loading branch information
RealFYang committed Oct 4, 2023
1 parent ceafbb7 commit cde511d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/c1_LIRGenerator_riscv.cpp
Expand Up @@ -804,7 +804,7 @@ void LIRGenerator::do_FmaIntrinsic(Intrinsic* x) {
}

void LIRGenerator::do_vectorizedMismatch(Intrinsic* x) {
fatal("vectorizedMismatch intrinsic is not implemented on this platform");
ShouldNotReachHere();
}

// _i2l, _i2f, _i2d, _l2i, _l2f, _l2d, _f2i, _f2l, _f2d, _d2i, _d2l, _d2f
Expand Down
5 changes: 5 additions & 0 deletions src/hotspot/cpu/riscv/vm_version_riscv.cpp
Expand Up @@ -111,6 +111,11 @@ void VM_Version::initialize() {
FLAG_SET_DEFAULT(UseCRC32CIntrinsics, false);
}

if (UseVectorizedMismatchIntrinsic) {
warning("VectorizedMismatch intrinsic is not available on this CPU.");
FLAG_SET_DEFAULT(UseVectorizedMismatchIntrinsic, false);
}

if (FLAG_IS_DEFAULT(UseMD5Intrinsics)) {
FLAG_SET_DEFAULT(UseMD5Intrinsics, true);
}
Expand Down

1 comment on commit cde511d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.