Home
last modified time | relevance | path

Searched refs:float4 (Results 1 – 25 of 50) sorted by relevance

12

/external/clang/test/SemaOpenCL/
Dvector_literals_const.cl18 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));
Dvector_literals_invalid.cl3 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…
Dinvalid-logical-ops-1.2.cl4 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}}
Dinvalid-logical-ops-1.1.cl4 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/
Dext-vector.c3 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 …]
Dbuiltinshufflevector2.c3 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()
D2010-02-18-Dbg-VectorType.c2 typedef float float4 __attribute__((vector_size(16))); typedef
5 volatile float4 x = (float4) { 0.0f, 1.0f, 2.0f, 3.0f }; in main()
Dext-vector-member-alignment.c3 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/
Dvector-init.c4 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];
Dext_vector_components.c5 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()
Dext_vector_casts.c7 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()
Dtypedef-retain.c3 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/
Dlogical-ops.cl7 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 …]
Dext-vector-shuffle.cl6 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); }
Dvector_literals_nested.cl12 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)));
Dfpmath.cl3 typedef __attribute__(( ext_vector_type(4) )) float float4;
11 float4 spvectordiv(float4 a, float4 b) {
Dvector_literals_valid.cl7 typedef __attribute__(( ext_vector_type(4) )) float float4;
19 float4 V2 = (float4) (1);
/external/llvm/test/CodeGen/ARM/
Dinline-diagnostics.ll3 %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/
Dd3d11tex.hlsl34 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/
D2007-05-03-VectorInit.cpp6 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/
Dd3d11gears.hlsl31 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/
Dd3d11tri.hlsl29 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/
Dd3d10tri.hlsl29 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/
Derr_init_conversion_failed.cpp40 typedef float float4 __attribute__((ext_vector_type(4))); typedef
43 const float4 V = (float4){ in, out }; in test14()
/external/clang/test/Parser/
Dopencl-astype.cl10 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…

12