[llvm-bugs] [Bug 28175] New: AVX512F lowers zext from i1 to i64 through a k-mask

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 17 10:54:43 PDT 2016


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

            Bug ID: 28175
           Summary: AVX512F lowers zext from i1 to i64 through a k-mask
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: mkuper at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

For

long long bar();

long long foo(bool i, int j) {
  if (j)
    return bar();
  return i;
}

With -mavx512f, we get:

foo(bool, int):                               # @foo(bool, int)
        testl   %esi, %esi
        je      .LBB0_1
        jmp     bar()                 # TAILCALL
.LBB0_1:
        andl    $1, %edi
        kmovw   %edi, %k0
        kmovw   %k0, %eax
        andq    $1, %rax
        retq

-- 
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/20160617/35d3007f/attachment.html>


More information about the llvm-bugs mailing list