[cfe-commits] bools in vector_size attribute causes crash

Chandler Carruth chandlerc at google.com
Wed Apr 25 19:03:09 PDT 2012

On Tue, Apr 24, 2012 at 5:38 PM, Roland Lei├ča <leissa at cs.uni-saarland.de>wrote:

> Hi all,
> this simple program currently causes a crash:
> typedef bool  bxmm __attribute__ ((vector_size(16)));
> typedef float fxmm __attribute__ ((vector_size(16)));
> bxmm f(fxmm a, fxmm b) {
>    return a < b;
> }
> The reason for this is, that actually bools are not allowed to be declared
> as gcc-vectors. (At least gcc does not allow this).
> The attached patch fixes this issue by emitting an error message when
> using bools in gcc-vectors.

Test case as well please.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120425/33606c43/attachment.html>

More information about the cfe-commits mailing list