/external/clang/test/SemaOpenCL/ |
D | vector_literals_const.cl | 17 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));
|
D | cond.cl | 3 typedef __attribute__((ext_vector_type(4))) float float4; 5 float4 foo(float4 a, float4 b, float4 c, float4 d) { return a < b ? c : d; }
|
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…
|
/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, uint4 mask ) { in clang_shufflevector_v_v_c()
|
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()
|
D | mangle.c | 64 typedef __attribute__(( vector_size(16) )) float float4; typedef 65 void __attribute__((__overloadable__)) foo9(float4 f) {} in foo9()
|
/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_casts.c | 6 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()
|
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 | 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()
|
D | ext_vector_comparisons.c | 18 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef 21 float4 vec, rv; in test2()
|
D | expr-address-of.c | 34 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef 36 float *testExtVectorComponentAccess(float4 x) { in testExtVectorComponentAccess()
|
/external/clang/test/CodeGenOpenCL/ |
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/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/clang/test/Parser/ |
D | opencl-astype.cl | 10 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/ |
D | c-language-features.inc | 149 typedef __attribute__((ext_vector_type(4))) float float4; 152 float4 t0 = (float4) { 0, 1, 2, 3 }; 153 float4 t1 = t0;
|
/external/clang/test/SemaTemplate/ |
D | ext-vector-type.cpp | 88 typedef float __attribute__((ext_vector_type(4))) float4; typedef 93 int array3[X0<float4>::value == 3? 1 : -1];
|
/external/clang/test/PCH/Inputs/ |
D | chain-ext_vector2.h | 3 typedef __attribute__((ext_vector_type(4))) float float4; typedef
|
/external/clang/test/PCH/ |
D | chain-ext_vector.c | 9 int test(float4 f4) { in test()
|
D | ext_vector.c | 8 int test(float4 f4) { in test()
|