[llvm-bugs] [Bug 41594] [x86] miscompile extract of bool vec

via llvm-bugs llvm-bugs at lists.llvm.org
Sat May 11 14:54:57 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41594

Simon Pilgrim <llvm-dev at redking.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
 Fixed By Commit(s)|                            |r359219

--- Comment #6 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
Fixed in trunk at rL359219

bitcast_extract: # @bitcast_extract
  pcmpgtb %xmm0, %xmm2
  pmovmskb %xmm2, %eax
  pcmpgtb %xmm1, %xmm3
  pmovmskb %xmm3, %ecx
  shll $16, %ecx
  orl %eax, %ecx
  movd %ecx, %xmm0
  pextrw $1, %xmm0, %eax
  retq

That extractelement(bitcast(scalar_to_vector(x))) is annoying though....

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190511/a7d79f03/attachment.html>


More information about the llvm-bugs mailing list