This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

vector compare


Hi gcc group,

I added vector compare and mov insns in gcc for our architecture (cross_gcc), but when I
use these insns in c, I have to use builtin functions instead of generic vector compare.


for example:

typedef short int v2hi __attribute__ ((vector_size (4))); // vector of two short
v2hi pix_x, pix_y, xy_max;
xy_max = (pix_x > pix_y) ? pix_x : pix_y;


cross_gcc give the following error: invalid operands to binary >

I have to use builtin compare_mov instruction.


Could someone tell me how to do vector compare in generic way?



Look forward to hearing from you



Maggie




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]