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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to