[cfe-dev] incomplete vector initialization
Anton Yartsev
anton.yartsev at gmail.com
Thu Jun 10 18:02:24 PDT 2010
Noticed that only the first vector element is initialized in IR when
initializing a vector with a single literal:
vector int v = (vector int)(1);
turns into
@v = global <4 x i32> <i32 1, i32 0, i32 0, i32 0>, align 16 ; <<4 x
i32>*> [#uses=0]
Attached is the patch and the test.
--
Anton
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AltiVec_vector_init_fix.patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100611/fb0546c3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vector-init.c
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100611/fb0546c3/attachment.c>
More information about the cfe-dev
mailing list