[LLVMbugs] [Bug 23082] New: Assertion failed: isa<llvm::VectorType>(IRType) && "Trying to return a non-vector type in a vector register!"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 30 23:41:10 PDT 2015


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

            Bug ID: 23082
           Summary: Assertion failed: isa<llvm::VectorType>(IRType) &&
                    "Trying to return a non-vector type in a vector
                    register!"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: douglas_yung at playstation.sony.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following code causes an assertion failure in the compiler after r230971.

// ===============================================================
typedef float __m128 __attribute__((__vector_size__(16)));
typedef int __m128i __attribute__((__vector_size__(16)));
union id1524 { __m128 id1522; __m128i id1514; };

id1524 test14_funcid1498() {}
// ===============================================================

When compiling with a compiler built from r230971 or newer on linux targeting
x86_64-unknown-linux-gnu, it fails with the assertion:

clang: /home/dyung/llvm/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp:2214:
llvm::Type* {anonymous}::X86_64ABIInfo::GetByteVectorType(clang::QualType)
const: Assertion `isa<llvm::VectorType>(IRType) && "Trying to return a
non-vector type in a vector register!"' failed.

Thanks to Greg Bedwell for helping me to get a smaller repro for this issue.

-- 
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/20150331/b774a5f2/attachment.html>


More information about the llvm-bugs mailing list