Fix the clang-wpa example.
[clang.git] / test / CodeGen / ext-vector-shuffle.c
blobd26602ae8d6327020094cbc17313f8733c32ba50
1 // RUN: %clang_cc1 %s -x cl -cl-opt-disable -emit-llvm -o - | not grep 'extractelement'
2 // RUN: %clang_cc1 %s -x cl -cl-opt-disable -emit-llvm -o - | not grep 'insertelement'
3 // RUN: %clang_cc1 %s -x cl -cl-opt-disable -emit-llvm -o - | grep 'shufflevector'
5 typedef __attribute__(( ext_vector_type(2) )) float float2;
6 typedef __attribute__(( ext_vector_type(4) )) float float4;
8 float2 test1(float4 V) {
9 return V.xy + V.wz;
12 float4 test2(float4 V) {
13 float2 W = V.ww;
14 return W.xyxy + W.yxyx;
17 float4 test3(float4 V1, float4 V2) { return (float4)(V1.zw, V2.xy); }