[cfe-commits] A Patch to Enable Vector Select for ARM

Yin Ma yinma at codeaurora.org
Wed Oct 26 10:57:13 PDT 2011


Hi All,

 

So far vector select, such as  a < b ? a : c is  not enabled in clang for
C/C++ code.

It only enabled for OpenCL. I have made a very small change in clang to
enable

Vector select. I have tested for ARM.  Everything works fine so far. 

I am wondering if the vector select could also be enabled in clang main
line? 

Any advice?

   I attached the diff file and a test case I wrote with this email. 

 

Thanks,

 

                                                 Yin 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111026/06dba815/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vector_select_validation.c
Type: application/octet-stream
Size: 4208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111026/06dba815/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vectorselect.diff
Type: application/octet-stream
Size: 3113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111026/06dba815/attachment-0001.obj>


More information about the cfe-commits mailing list