[cfe-commits] r74299 - in /cfe/trunk: lib/AST/ExprConstant.cpp test/Sema/ext_vector_components.c
Nate Begeman
natebegeman at mac.com
Sat Jun 27 18:01:42 PDT 2009
On Jun 27, 2009, at 7:01 PM, Eli Friedman wrote:
> On Sat, Jun 27, 2009 at 3:25 PM, Nate Begeman<natebegeman at mac.com>
> wrote:
>> It should bit-convert 4LL to v2f32 when not targeting OpenCL (to
>> maintain
>> gcc compatibility, although i don't know if gcc considers that a
>> constant
>> expression or not, will try it out), and create a vector of {4.0f,
>> 4.0f} for
>> OpenCL. I'll update the code to handle that. Lemme know if you
>> have other
>> ideas :)
>
> Actually, maybe we can make it work in OpenCL style for ExtVectors,
> and gcc-style for other vectors? I'd like to avoid having the
> behavior here depend on whether we're in OpenCL mode.
That sounds like a reasonable plan.
Nate
More information about the cfe-commits
mailing list