[llvm-bugs] [Bug 32256] New: Assertion `!isHReg(DestReg) && "Cannot move between mask and h-reg"' failed with -m32 -O0 -march=skx.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 13 12:37:35 PDT 2017


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

            Bug ID: 32256
           Summary: Assertion `!isHReg(DestReg) && "Cannot move between
                    mask and h-reg"' failed with -m32 -O0 -march=skx.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: Vsevolod.Livinskij at frtk.ru
                CC: llvm-bugs at lists.llvm.org

Created attachment 18089
  --> https://bugs.llvm.org/attachment.cgi?id=18089&action=edit
Reproducer.

-m32 -O0 -march=skx options resulted in assertion fail: `!isHReg(DestReg) &&
"Cannot move between mask and h-reg"' (same problem with knl). Everything works
fine with other optimizations levels. 

Reproducer:
extern bool c;
void a() { 
    char b = bool(!c) && 0; 
}

LLVM version:
clang version 5.0.0 (trunk 297578)

Error:
clang-5.0:
/home/vsevolod/workspace/llvm/llvm-trunk/lib/Target/X86/X86InstrInfo.cpp:6328:
unsigned int CopyToFromAsymmetricReg(unsigned int&, unsigned int&, const
llvm::X86Subtarget&): Assertion `!isHReg(DestReg) && "Cannot move between mask
and h-reg"' failed.
(........)

-- 
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/20170313/46235a87/attachment.html>


More information about the llvm-bugs mailing list