[Bug 234232] clang Assertion failed when building the port devel/aws-checksums

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 20 22:18:20 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234232

            Bug ID: 234232
           Summary: clang Assertion failed when building the port
                    devel/aws-checksums
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: danilo at FreeBSD.org

Clang is segfaulting on CURRENT when building devel/aws-checksums.

It stops at this assertion:

Assertion failed: (i == DstIdx || !MI->getOperand(i).isReg() ||
MI->getOperand(i).getReg() != RegA), function processTiedPairs, file
/usr/src/contrib/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp, line 1544.

TwoAddressInstructionPass.cpp:1544.
#ifndef NDEBUG
    // First, verify that we don't have a use of "a" in the instruction
    // (a = b + a for example) because our transformation will not
    // work. This should never occur because we are in SSA form.
    for (unsigned i = 0; i != MI->getNumOperands(); ++i)
      assert(i == DstIdx ||
             !MI->getOperand(i).isReg() ||
             MI->getOperand(i).getReg() != RegA);
#endif

The target file (source/intel/crc32c_sse42_asm.c) has a lot of assembly inline
code.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list