# HG changeset patch # User iveresov # Date 1395728026 25200 # Node ID 102f7bcc574b541ef786a472e3b3ed7210cf773b # Parent bfdd90c07bf88c56fa35899d095888fe88d82374 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 diff -r bfdd90c07bf8 -r 102f7bcc574b hotspot/src/cpu/x86/vm/assembler_x86.cpp --- 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);