[cfe-dev] Clang doesn't support Logical Operator supported in GCC Vector Extension?
Yin Ma
yinma at codeaurora.org
Fri Oct 21 11:03:00 PDT 2011
Hi,
Clang supports GCC Vector Extension. However GCC Vector Extension supports
Logical operator like <, >
If I try to compile the code like
typedef float float4 __attribute__((ext_vector_type(4)));
float4 a;
float4 b;
float4 c;
a = b > c;
the clang will
used type 'int __attribute__((ext_vector_type(4)))' where arithmetic,
pointer, or vector type is required.
But if the code is
a = b * c;
Everything works. Do you know why vector logical operator is not supported
by this time?
Thanks,
Yin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111021/d59e007a/attachment.html>
More information about the cfe-dev
mailing list