[LLVMbugs] [Bug 24021] New: Assertion failure with -mavx

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 2 11:43:30 PDT 2015


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

            Bug ID: 24021
           Summary: Assertion failure with -mavx
           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, with -mavx
-----------------------------------------------
typedef float __m256 __attribute__ ((__vector_size__ (32)));
union ub {__m256 f1;int f2;};
void testx(  void (*func)(ub, int));
void (*f0) (ub, int);;
int main(int argc, char **argv)
{
  testx (f0);;
  return 0;
}
-----------------------------------------------
clang version 3.7.0 (trunk 241287)
Target: x86_64-unknown-linux-gnu

$clang++ -cc1 -emit-obj -target-feature +avx -triple x86_64-unknown-linux-gnu
bad.cpp

clang++: /llvm/tools/clang/lib/CodeGen/TargetInfo.cpp:2655:
clang::CodeGen::ABIArgInfo
{anonymous}::X86_64ABIInfo::classifyArgumentType(clang::QualType, unsigned int,
unsigned int&, unsigned int&, bool) const: Assertion `(Hi != SSEUp || Lo ==
SSE) && "Invalid SSEUp classification."' 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/20150702/a43f16f8/attachment.html>


More information about the llvm-bugs mailing list