[LLVMbugs] [Bug 24162] New: Assertion failure with vector on one char

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 16 18:03:55 PDT 2015


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

            Bug ID: 24162
           Summary: Assertion failure with vector on one char
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sunil_srivastava at playstation.sony.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Following example gives an assertion failure, on linux-x86_64.

Just plain 'clang -S rte.c'
----------------  rte.c --------------
typedef char C1 __attribute__((__vector_size__(1)));
extern void *gptr;
typedef union { float f1; C1 f2; } U2;
void callee(U2 v) { *(U2*)gptr = v; };
----------------------------------------

clang version 3.8.0 (trunk 242488)
Target: x86_64-unknown-linux-gnu

/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp:1821: static
{anonymous}::X86_64ABIInfo::Class
{anonymous}::X86_64ABIInfo::merge({anonymous}::X86_64ABIInfo::Class,
{anonymous}::X86_64ABIInfo::Class): Assertion `(Accum != Memory && Accum !=
ComplexX87) && "Invalid accumulated classification during merge."' 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/20150717/4ecf20d2/attachment.html>


More information about the llvm-bugs mailing list