[llvm-bugs] [Bug 35129] ptest not used for pointer comparison (but is for integer)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 24 15:40:31 PDT 2020


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

listmail at philipreames.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #6 from listmail at philipreames.com ---
Simon, I just tried to test this on most recent LLC, and still see code
differences between the original examples posted.  These are both examples of
not(anyof) patterns, the only difference between them is the use of pointer vs
integer comparisons.  We really should be producing the same code for these two
examples.

test_opt:
        vpxor   %xmm1, %xmm1, %xmm1
        vpcmpeqq        %xmm1, %xmm0, %xmm1
        vmovmskpd       %xmm1, %eax
        testb   %al, %al
        je      .LBB0_2

test_sidestep:
        vptest  %xmm0, %xmm0
        je      .LBB1_2

-- 
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/20200624/f91c1a43/attachment.html>


More information about the llvm-bugs mailing list