[llvm-bugs] [Bug 46200] New: Failure to use vpmovmskb instead of vpmovb2m+kmovd

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 4 08:11:49 PDT 2020


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

            Bug ID: 46200
           Summary: Failure to use vpmovmskb instead of vpmovb2m+kmovd
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: gabravier at gmail.com
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    llvm-dev at redking.me.uk, spatel+llvm at rotateright.com

int f(__m256i mask)
{
        return _mm256_movemask_epi8(mask);
}

With -O3 -mavx512bw, GCC outputs this :

f(long long __vector(4)):
  vpmovmskb eax, ymm0
  ret

LLVM outputs this :

f(long long __vector(4)): # @f(long long __vector(4))
  vpmovb2m k0, zmm0
  kmovd eax, k0
  vzeroupper
  ret

-- 
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/20200604/495f8a60/attachment.html>


More information about the llvm-bugs mailing list