8038222: Assembler::bsrl fails on assert when -UseCountLeadingZerosInstruction is used on CPU with LZCNT support

Mon, 24 Mar 2014 23:13:46 -0700

author
iveresov
date
Mon, 24 Mar 2014 23:13:46 -0700
changeset 6433
bf20bec37f24
parent 6427
a48e16541e6b
child 6434
049414a5b5f6

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

src/cpu/x86/vm/assembler_x86.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/cpu/x86/vm/assembler_x86.cpp	Sat Mar 22 00:26:48 2014 +0400
     1.2 +++ b/src/cpu/x86/vm/assembler_x86.cpp	Mon Mar 24 23:13:46 2014 -0700
     1.3 @@ -1112,7 +1112,6 @@
     1.4  }
     1.5  
     1.6  void Assembler::bsrl(Register dst, Register src) {
     1.7 -  assert(!VM_Version::supports_lzcnt(), "encoding is treated as LZCNT");
     1.8    int encode = prefix_and_encode(dst->encoding(), src->encoding());
     1.9    emit_int8(0x0F);
    1.10    emit_int8((unsigned char)0xBD);
    1.11 @@ -4938,7 +4937,6 @@
    1.12  }
    1.13  
    1.14  void Assembler::bsrq(Register dst, Register src) {
    1.15 -  assert(!VM_Version::supports_lzcnt(), "encoding is treated as LZCNT");
    1.16    int encode = prefixq_and_encode(dst->encoding(), src->encoding());
    1.17    emit_int8(0x0F);
    1.18    emit_int8((unsigned char)0xBD);

mercurial