xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/builtinshufflevector.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm < %s | grep 'shufflevector' | count 1
2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -ftrapv < %s | grep 'shufflevector' | count 1
3*f4a2713aSLionel Sambuc typedef int v4si __attribute__ ((vector_size (16)));
4*f4a2713aSLionel Sambuc 
a(v4si x,v4si y)5*f4a2713aSLionel Sambuc v4si a(v4si x, v4si y) {return __builtin_shufflevector(x, y, 3, 2, 5, (2*3)+1);}
6*f4a2713aSLionel Sambuc 
7