[cfe-commits] bools in vector_size attribute causes crash

Roland Leißa leissa at cs.uni-saarland.de
Wed Apr 25 19:46:21 PDT 2012


my old patch seemed to have a problem. Now I'm doing the check differently.

Is the test case OK like this?

-- 
Roland

----- Original Message -----
> From: "Chandler Carruth" <chandlerc at google.com>
> To: "Roland Leißa" <leissa at cs.uni-saarland.de>
> Cc: cfe-commits at cs.uiuc.edu
> Sent: Mittwoch, 25. April 2012 19:03:09
> Subject: Re: [cfe-commits] bools in vector_size attribute causes crash
> 
> 
> 
> 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 --------------
A non-text attachment was scrubbed...
Name: vector_size_bool_patch.diff
Type: text/x-patch
Size: 1378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120426/1f62fa4a/attachment.bin>


More information about the cfe-commits mailing list