blob: 5c647df13a64e0ed9106f97d93764bcb3e4c0491 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm < %s | grep 'shufflevector' | count 1
Eli Friedman0eb47fc2011-05-19 00:37:32 +00002// RUN: %clang_cc1 -emit-llvm -ftrapv < %s | grep 'shufflevector' | count 1
Eli Friedmand38617c2008-05-14 19:38:39 +00003typedef int v4si __attribute__ ((vector_size (16)));
4
Eli Friedman0eb47fc2011-05-19 00:37:32 +00005v4si a(v4si x, v4si y) {return __builtin_shufflevector(x, y, 3, 2, 5, (2*3)+1);}
Eli Friedmand38617c2008-05-14 19:38:39 +00006