From 8cc1669ffd22c8cabc98585ca6df6fc5fed5fb10 Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Fri, 6 Jan 2023 12:56:36 +0000 Subject: [PATCH] 8299721: [Vector API] assert in switch-default of LibraryCallKit::arch_supports_vector_rotate is too weak to catch bugs Reviewed-by: jbhateja --- src/hotspot/share/opto/vectorIntrinsics.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hotspot/share/opto/vectorIntrinsics.cpp b/src/hotspot/share/opto/vectorIntrinsics.cpp index 8447ad5a871..4ac610ea295 100644 --- a/src/hotspot/share/opto/vectorIntrinsics.cpp +++ b/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 @@ -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);