changeset 23497:102f7bcc574b

8038222: Assembler::bsrl fails on assert when -UseCountLeadingZerosInstruction is used on CPU with LZCNT support Summary: Remove the overly strict assert Reviewed-by: kvn, twisti
author iveresov
date Mon, 24 Mar 2014 23:13:46 -0700
parents bfdd90c07bf8
children a0e67b766e5c
files hotspot/src/cpu/x86/vm/assembler_x86.cpp
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/cpu/x86/vm/assembler_x86.cpp	Mon Mar 24 17:44:27 2014 -0700
+++ b/hotspot/src/cpu/x86/vm/assembler_x86.cpp	Mon Mar 24 23:13:46 2014 -0700
@@ -1112,7 +1112,6 @@
 }
 
 void Assembler::bsrl(Register dst, Register src) {
-  assert(!VM_Version::supports_lzcnt(), "encoding is treated as LZCNT");
   int encode = prefix_and_encode(dst->encoding(), src->encoding());
   emit_int8(0x0F);
   emit_int8((unsigned char)0xBD);
@@ -4977,7 +4976,6 @@
 }
 
 void Assembler::bsrq(Register dst, Register src) {
-  assert(!VM_Version::supports_lzcnt(), "encoding is treated as LZCNT");
   int encode = prefixq_and_encode(dst->encoding(), src->encoding());
   emit_int8(0x0F);
   emit_int8((unsigned char)0xBD);