Skip to content

Commit

Permalink
8299721: [Vector API] assert in switch-default of LibraryCallKit::arc…
Browse files Browse the repository at this point in the history
…h_supports_vector_rotate is too weak to catch bugs

Reviewed-by: jbhateja
  • Loading branch information
DamonFool committed Jan 6, 2023
1 parent 5598acc commit 8cc1669
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hotspot/share/opto/vectorIntrinsics.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -128,8 +128,7 @@ bool LibraryCallKit::arch_supports_vector_rotate(int opc, int num_elem, BasicTyp
lshiftopc = Op_LShiftL;
rshiftopc = Op_URShiftL;
break;
default:
assert(false, "Unexpected type");
default: fatal("Unexpected type: %s", type2name(elem_bt));
}
int lshiftvopc = VectorNode::opcode(lshiftopc, elem_bt);
int rshiftvopc = VectorNode::opcode(rshiftopc, elem_bt);
Expand Down

1 comment on commit 8cc1669

@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.