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