/external/clang/test/SemaOpenCL/ |
D | vector_literals_const.cl | 18 typedef float float4 __attribute((ext_vector_type(4))); 20 __constant float4 f_1_1_1_1 = (float4)(1,2,3,4); 21 __constant float4 f_2_1_1 = (float4)((float2)(1,2),3,4); 22 __constant float4 f_1_2_1 = (float4)(1,(float2)(2,3),4); 23 __constant float4 f_1_1_2 = (float4)(1,2,(float2)(3,4)); 24 __constant float4 f_2_2 = (float4)((float2)(1,2),(float2)(3,4)); 25 __constant float4 f_3_1 = (float4)((float3)(1,2,3),4); 26 __constant float4 f_1_3 = (float4)(1,(float3)(2,3,4));
|
D | vector_literals_invalid.cl | 3 typedef __attribute__(( ext_vector_type(4) )) float float4; 11 ((float4)(1.0f))++; // expected-error{{cannot increment value of type 'float4'}} 12 …int8 d = (int8)(a,(float4)(1)); // expected-error{{initializing 'int' with an expression of incomp…
|
D | invalid-logical-ops-1.2.cl | 4 typedef __attribute__((ext_vector_type(4))) float float4; 24 float4 f4 = (float4)(0, 0, 0, 0); 27 float4 f4baf = f4 & 0.0f; // expected-error {{invalid operands}} 28 float4 f4bof = f4 | 0.0f; // expected-error {{invalid operands}} 29 float4 f4bxf = f4 ^ 0.0f; // expected-error {{invalid operands}}
|
D | invalid-logical-ops-1.1.cl | 4 typedef __attribute__((ext_vector_type(4))) float float4; 24 float4 f4 = (float4)(0, 0, 0, 0); 27 float4 f4baf = f4 & 0.0f; // expected-error {{invalid operands}} 28 float4 f4bof = f4 | 0.0f; // expected-error {{invalid operands}} 29 float4 f4bxf = f4 ^ 0.0f; // expected-error {{invalid operands}}
|
/external/clang/test/CodeGen/ |
D | ext-vector.c | 3 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef 9 float4 foo = (float4){ 1.0, 2.0, 3.0, 4.0 }; 12 const float4 bar = (float4){ 1.0, 2.0, 3.0, __builtin_inff() }; 16 float4 test1(float4 V) { in test1() 21 float4 vec4, vec4_2; 41 void test3(float4 *out) { in test3() 42 *out = ((float4) {1.0f, 2.0f, 3.0f, 4.0f }); in test3() 48 void test4(float4 *out) { in test4() 53 *out = ((float4) {a,b,c,d}); in test4() 62 void test5(float4 *out) { in test5() [all …]
|
D | builtinshufflevector2.c | 3 typedef float float4 __attribute__((ext_vector_type(4))); typedef 7 void clang_shufflevector_v_v( float4* A, float4 x, uint4 mask ) { in clang_shufflevector_v_v() 31 void clang_shufflevector_v_v_c( float4* A, float4 x, float4 y) { in clang_shufflevector_v_v_c() 38 void clang_shufflevector_v_v_undef( float4* A, float4 x, float4 y) { in clang_shufflevector_v_v_undef()
|
D | 2010-02-18-Dbg-VectorType.c | 2 typedef float float4 __attribute__((vector_size(16))); typedef 5 volatile float4 x = (float4) { 0.0f, 1.0f, 2.0f, 3.0f }; in main()
|
D | ext-vector-member-alignment.c | 3 typedef float float4 __attribute__((ext_vector_type(4))); typedef 6 float4 position; 10 float4 f(struct struct1* x) { return x->position; } in f()
|
/external/clang/test/Sema/ |
D | vector-init.c | 4 typedef float float4 __attribute__((vector_size(16))); typedef 6 float4 foo = (float4){ 1.0, 2.0, 3.0, 4.0 }; 8 float4 foo2 = (float4){ 1.0, 2.0, 3.0, 4.0 , 5.0 }; // expected-warning{{excess elements in vector … 10 float4 array[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0}; 11 int array_sizecheck[(sizeof(array) / sizeof(float4)) == 3 ? 1 : -1]; 13 float4 array2[2] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 16 float4 array3[2] = { {1.0, 2.0, 3.0}, 5.0, 6.0, 7.0, 8.0, 34 int test2[sizeof(float3) == sizeof(float4) ? 1 : -1];
|
D | ext_vector_components.c | 5 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef 8 static float4 vec4_0 = (float4)0.5f; 13 float4 vec4, vec4_2, *vec4p; in test() 35 vec4 = (float4){ 1,2,3,4 }; in test()
|
D | ext_vector_casts.c | 7 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef 16 float4 vec4, vec4_2; in test() 27 vec4 = (float4)5.0f; in test() 28 vec4 = (float4)5; in test() 29 vec4 = (float4)vec4_3; in test() 40 …vec4 = (float4)vec2; // expected-error {{invalid conversion between ext-vector type 'float4' (vect… in test()
|
D | typedef-retain.c | 3 typedef float float4 __attribute__((vector_size(16))); typedef 7 void test1(float4 a, int4 *result, int i) { in test1() 11 void test2(float4 a, int4p result, int i) { in test2()
|
/external/clang/test/CodeGenOpenCL/ |
D | logical-ops.cl | 7 typedef float float4 __attribute((ext_vector_type(4))); 11 kernel void floatops(global int4 *out, global float4 *fout) { 13 out[0] = (float4)(1, 1, 1, 1) && 1.0f; 15 out[1] = (float4)(0, 0, 0, 0) && (float4)(0, 0, 0, 0); 18 out[2] = (float4)(0, 0, 0, 0) || (float4)(1, 1, 1, 1); 20 out[3] = (float4)(0, 0, 0, 0) || 0.0f; 23 out[4] = !(float4)(0, 0, 0, 0); 25 out[5] = !(float4)(1, 2, 3, 4); 27 out[6] = !(float4)(0, 1, 0, 1); 29 fout[0] = (float4)(!0.0f); [all …]
|
D | ext-vector-shuffle.cl | 6 typedef __attribute__(( ext_vector_type(4) )) float float4; 8 float2 test1(float4 V) { 12 float4 test2(float4 V) { 17 float4 test3(float4 V1, float4 V2) { return (float4)(V1.zw, V2.xy); }
|
D | vector_literals_nested.cl | 12 typedef float float4 __attribute((ext_vector_type(4))); 14 void ftest1(float4 *p) { 15 *p = (float4)(1.1f, 1.2f, ((float2)(1.3f, 1.4f))); 19 float4 ftest2(float4 *p) { 20 *p = (float4)(1.1f, 1.2f, ((float2)(1.3f)));
|
D | fpmath.cl | 3 typedef __attribute__(( ext_vector_type(4) )) float float4; 11 float4 spvectordiv(float4 a, float4 b) {
|
D | vector_literals_valid.cl | 7 typedef __attribute__(( ext_vector_type(4) )) float float4; 19 float4 V2 = (float4) (1);
|
/external/llvm/test/CodeGen/ARM/ |
D | inline-diagnostics.ll | 3 %struct.float4 = type { float, float, float, float } 7 %c1 = alloca %struct.float4, align 4 8 %c2 = alloca %struct.float4, align 4 9 %c3 = alloca %struct.float4, align 4 10 …l.f32 ${2:q}, ${0:q}, ${1:q}", "=*r,=*r,*w"(%struct.float4* %c1, %struct.float4* %c2, %struct.floa… 11 %x = getelementptr inbounds %struct.float4, %struct.float4* %c3, i32 0, i32 0
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11tex/ |
D | d3d11tex.hlsl | 34 float4 position : POSITION; 40 float4 position : SV_POSITION; 42 float4 factors : FACTORS; 55 float4 ps(VS2PS input) : SV_TARGET 57 float4 a0 = tex0.Sample(samp0, input.texcoord); 58 float4 a1 = tex0.Sample(samp1, input.texcoord); 59 float4 a = a0 * input.factors.z + a1 * input.factors.x; 61 float4 b0 = tex1.Sample(samp0, input.texcoord); 62 float4 b1 = tex1.Sample(samp1, input.texcoord); 63 float4 b = b0 * input.factors.z + b1 * input.factors.x;
|
/external/clang/test/CodeGenCXX/ |
D | 2007-05-03-VectorInit.cpp | 6 typedef v4sf float4; typedef 8 static float4 splat4(float a) in splat4() 10 float4 tmp = {a,a,a,a}; in splat4() 14 float4 foo(float a) in foo()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11gears/ |
D | d3d11gears.hlsl | 31 float4 light; 32 float4 diffuse; 33 float4 specular; 39 float4 position : POSITION; 45 float4 position : SV_POSITION; 56 result.position = mul((float4x4)proj, float4(view, 1)); 64 float4 ps(VS2PS input) : SV_TARGET
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11tri/ |
D | d3d11tri.hlsl | 29 float4 position : POSITION; 30 float4 color : COLOR; 35 float4 position : SV_POSITION; 36 float4 color : COLOR; 47 float4 ps(VS2PS input) : SV_TARGET
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d10tri/ |
D | d3d10tri.hlsl | 29 float4 position : POSITION; 30 float4 color : COLOR; 35 float4 position : SV_POSITION; 36 float4 color : COLOR; 47 float4 ps(VS2PS input) : SV_TARGET
|
/external/clang/test/SemaCXX/ |
D | err_init_conversion_failed.cpp | 40 typedef float float4 __attribute__((ext_vector_type(4))); typedef 43 const float4 V = (float4){ in, out }; in test14()
|
/external/clang/test/Parser/ |
D | opencl-astype.cl | 10 typedef __attribute__(( ext_vector_type(4) )) float float4; 13 float4 f4; 14 … reinterpretation: sizes of 'double4' (vector of 4 'double' values) and 'float4' (vector of 4 'flo…
|