Home
last modified time | relevance | path

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

12

/external/clang/test/SemaOpenCL/
Dvector_literals_const.cl17 typedef float float4 __attribute((ext_vector_type(4)));
19 __constant float4 f_1_1_1_1 = (float4)(1,2,3,4);
20 __constant float4 f_2_1_1 = (float4)((float2)(1,2),3,4);
21 __constant float4 f_1_2_1 = (float4)(1,(float2)(2,3),4);
22 __constant float4 f_1_1_2 = (float4)(1,2,(float2)(3,4));
23 __constant float4 f_2_2 = (float4)((float2)(1,2),(float2)(3,4));
24 __constant float4 f_3_1 = (float4)((float3)(1,2,3),4);
25 __constant float4 f_1_3 = (float4)(1,(float3)(2,3,4));
Dcond.cl3 typedef __attribute__((ext_vector_type(4))) float float4;
5 float4 foo(float4 a, float4 b, float4 c, float4 d) { return a < b ? c : d; }
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…
/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, uint4 mask ) { in clang_shufflevector_v_v_c()
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()
Dmangle.c64 typedef __attribute__(( vector_size(16) )) float float4; typedef
65 void __attribute__((__overloadable__)) foo9(float4 f) {} in foo9()
/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_casts.c6 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
11 float4 vec4, vec4_2; in test()
19 vec4 = (float4)5.0f; in test()
20 vec4 = (float4)5; in test()
21 vec4 = (float4)vec4_3; in test()
32 …vec4 = (float4)vec2; // expected-error {{invalid conversion between ext-vector type 'float4' and '… in test()
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()
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()
Dext_vector_comparisons.c18 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
21 float4 vec, rv; in test2()
Dexpr-address-of.c34 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
36 float *testExtVectorComponentAccess(float4 x) { in testExtVectorComponentAccess()
/external/clang/test/CodeGenOpenCL/
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/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/clang/test/Parser/
Dopencl-astype.cl10 typedef __attribute__(( ext_vector_type(4) )) float float4;
13 float4 f4;
14 …double4); // expected-error{{invalid reinterpretation: sizes of 'double4' and 'float4' must match}}
/external/clang/test/Coverage/
Dc-language-features.inc149 typedef __attribute__((ext_vector_type(4))) float float4;
152 float4 t0 = (float4) { 0, 1, 2, 3 };
153 float4 t1 = t0;
/external/clang/test/SemaTemplate/
Dext-vector-type.cpp88 typedef float __attribute__((ext_vector_type(4))) float4; typedef
93 int array3[X0<float4>::value == 3? 1 : -1];
/external/clang/test/PCH/Inputs/
Dchain-ext_vector2.h3 typedef __attribute__((ext_vector_type(4))) float float4; typedef
/external/clang/test/PCH/
Dchain-ext_vector.c9 int test(float4 f4) { in test()
Dext_vector.c8 int test(float4 f4) { in test()

12