Lines Matching defs:float2
5 typedef __attribute__(( ext_vector_type(2) )) float float2;
17 float2 vec2;
44 vec4 = (float4)vec2; // expected-error {{invalid conversion between ext-vector type 'float4' (vector of 4 'float' values) and 'float2' (vector of 2 'float' values)}}
61 typedef __attribute__(( ext_vector_type(2) )) float2 vecfloat2; // expected-error{{invalid vector element type 'float2' (vector of 2 'float' values)}}
63 void inc(float2 f2) {
64 f2++; // expected-error{{cannot increment value of type 'float2' (vector of 2 'float' values)}}
65 __real f2; // expected-error{{invalid type 'float2' (vector of 2 'float' values) to __real operator}}
104 float2 vf = f;
121 vf = l + vf; // expected-warning {{implicit conversion from 'long' to 'float2' (vector of 2 'float' values) may lose precision}}
124 vf = vf + 0xffffffff; // expected-warning {{implicit conversion from 'unsigned int' to 'float2' (vector of 2 'float' values) changes value from 4294967295 to 4294967296}}