http://llvm.org/bugs/show_bug.cgi?id=8512
Summary: incorrect IR representation for bool vectors
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=5705)
--> (http://llvm.org/bugs/attachment.cgi?id=5705)
test illustrating the problem
Generation of IR from the following code
typedef bool v128b __attribute__ ((vector_size (16)));
int main() {
v128b v1;
}
gives
define i32 @main() nounwind {
entry:
%v1 = alloca <16 x i1>, align 16
ret i32 0
}
<16 x i1> is insufficient for 16-byte vector.
Attached is the test that compiles under GCC but gives assert under clang
because of the wrong bool vector size:
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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