/external/clang/test/CodeGenOpenCL/ |
D | vector_literals_valid.cl | 5 typedef __attribute__(( ext_vector_type(4) )) int int4; 10 int4 a_1_1_1_1 = (int4)(1,2,3,4); 11 int4 a_2_1_1 = (int4)((int2)(1,2),3,4); 12 int4 a_1_2_1 = (int4)(1,(int2)(2,3),4); 13 int4 a_1_1_2 = (int4)(1,2,(int2)(3,4)); 14 int4 a_2_2 = (int4)((int2)(1,2),(int2)(3,4)); 15 int4 a_3_1 = (int4)((int3)(1,2,3),4); 16 int4 a_1_3 = (int4)(1,(int3)(2,3,4)); 17 int4 a = (int4)(1);
|
D | shifts.cl | 46 typedef __attribute__((ext_vector_type(4))) int int4; 49 int4 vectorVectorTest(int4 a,int4 b) { 52 int4 c = a << b; 54 int4 d = {1, 1, 1, 1}; 55 int4 e = {33, 34, -28, -29}; 56 int4 f = c + (d << e); 62 int4 vectorScalarTest(int4 a,int b) { 67 int4 c = a << b; 69 int4 d = {1, 1, 1, 1}; 70 int4 f = c + (d << 34);
|
D | vector_literals_nested.cl | 4 typedef int int4 __attribute((ext_vector_type(4))); 6 __constant const int4 itest1 = (int4)(1, 2, ((int2)(3, 4))); 8 __constant const int4 itest2 = (int4)(1, 2, ((int2)(3)));
|
D | bool_cast.cl | 4 typedef unsigned int int4 __attribute((ext_vector_type(4))); 10 int4 vec4 = (int4)t;
|
D | pipe_types.cl | 5 typedef int __attribute__((ext_vector_type(4))) int4; 25 void test5(read_only pipe int4 p) {
|
/external/clang/test/SemaOpenCL/ |
D | vector_literals_const.cl | 6 typedef int int4 __attribute((ext_vector_type(4))); 8 __constant int4 i_1_1_1_1 = (int4)(1,2,3,4); 9 __constant int4 i_2_1_1 = (int4)((int2)(1,2),3,4); 10 __constant int4 i_1_2_1 = (int4)(1,(int2)(2,3),4); 11 __constant int4 i_1_1_2 = (int4)(1,2,(int2)(3,4)); 12 __constant int4 i_2_2 = (int4)((int2)(1,2),(int2)(3,4)); 13 __constant int4 i_3_1 = (int4)((int3)(1,2,3),4); 14 __constant int4 i_1_3 = (int4)(1,(int3)(2,3,4));
|
D | vector_conv_invalid.cl | 4 typedef int int4 __attribute((ext_vector_type(4))); 10 …int4 i = u; // expected-error{{initializing 'int4' (vector of 4 'int' values) with an expression o… 11 …int4 e = (int4)u; // expected-error{{invalid conversion between ext-vector type 'int4' (vector of …
|
D | vector_literals_invalid.cl | 4 typedef __attribute__(( ext_vector_type(4) )) int int4; 9 int4 a = (int4)(1,2,3); // expected-error{{too few elements}} 10 int4 b = (int4)(1,2,3,4,5); // expected-error{{excess elements in vector}}
|
D | invalid-logical-ops-1.2.cl | 7 typedef __attribute__((ext_vector_type(4))) int int4; 26 int4 f4laf = f4 && 0.0f; 27 int4 f4lof = f4 || 0.0f; 32 int4 lnf4 = !f4;
|
D | vec_step.cl | 5 typedef int int4 __attribute__((ext_vector_type(4))); 10 int4 auto1; 24 int res9[vec_step(int4) == 4 ? 1 : -1];
|
D | invalid-logical-ops-1.1.cl | 6 typedef __attribute__((ext_vector_type(4))) int int4; 25 int4 f4laf = f4 && 0.0f; // expected-error {{invalid operands}} 26 int4 f4lof = f4 || 0.0f; // expected-error {{invalid operands}} 31 int4 lnf4 = !f4; // expected-error {{invalid argument type}}
|
/external/clang/test/CodeGen/ |
D | palignr.c | 5 typedef __attribute__((vector_size(16))) int int4; typedef 8 int4 align1(int4 a, int4 b) { return _mm_alignr_epi8(a, b, 15); } in align1() 12 int4 align2(int4 a, int4 b) { return _mm_alignr_epi8(a, b, 16); } in align2() 14 int4 align3(int4 a, int4 b) { return _mm_alignr_epi8(a, b, 17); } in align3() 16 int4 align4(int4 a, int4 b) { return _mm_alignr_epi8(a, b, 32); } in align4()
|
D | ext-vector.c | 5 typedef __attribute__(( ext_vector_type(4) )) int int4; typedef 119 int4 cmp; in test6() 130 void test7(int4 *ap, int4 *bp, int c) { in test7() 131 int4 a = *ap; in test7() 132 int4 b = *bp; in test7() 186 int4 cmp; in test7() 207 int4 cmp; in test8() 218 int test9(int4 V) { in test9() 225 int test10(int4 V) { in test10() 231 int4 test11a(); [all …]
|
D | arm-swiftcall.c | 66 typedef int int4 __attribute__((ext_vector_type(4))); typedef 407 TEST(int4)
|
/external/clang/test/CodeGenCXX/ |
D | vector-splat-conversion.cpp | 20 typedef __attribute__((__ext_vector_type__(4))) int int4; typedef 27 int4 intsT = (int4)true; in BoolConversion() 29 int4 intsF = (int4)false; in BoolConversion() 40 constexpr int4 cIntsT = (int4)true; in BoolConversion() 42 constexpr int4 cIntsF = (int4)false; in BoolConversion()
|
/external/clang/test/Sema/ |
D | ext_vector_casts.c | 7 typedef __attribute__(( ext_vector_type(4) )) int int4; typedef 19 int4 ivec4; in test() 33 ivec4 = (int4)5.0f; in test() 34 ivec4 = (int4)5; in test() 35 ivec4 = (int4)vec4_3; in test() 40 …ivec4 = (int4)ptr; // expected-error {{invalid conversion between vector type 'int4' (vector of 4 … in test() 50 ivec4 += (int4)vec4; in test() 74 stride4 RDar15091442_get_stride4(int4 x, PixelByteStride pixelByteStride); 75 stride4 RDar15091442_get_stride4(int4 x, PixelByteStride pixelByteStride) in RDar15091442_get_stride4() 99 int4 vi = i; in splats()
|
D | ext_vector_comparisons.c | 3 typedef __attribute__(( ext_vector_type(4) )) int int4; typedef 5 static int4 test1() { in test1() 6 int4 vec, rv; in test1() 20 static int4 test2() { in test2()
|
D | conversion-64-32.c | 9 typedef int int4 __attribute__ ((vector_size(16))); typedef 12 int4 test1(long2 a) { in test1() 13 int4 v127 = a; // no warning. in test1()
|
D | typedef-retain.c | 4 typedef int int4 __attribute__((vector_size(16))); typedef 5 typedef int4* int4p; 7 void test1(float4 a, int4 *result, int i) { in test1()
|
D | transparent-union.c | 68 typedef int int4 __attribute__((ext_vector_type(4))); typedef 70 …int4 vec; // expected-warning{{first field of a transparent union cannot have vector type 'int4' (…
|
/external/clang/test/Parser/ |
D | opencl-astype.cl | 8 typedef __attribute__(( ext_vector_type(4) )) int int4; 16 // Verify int4->float3, float3->int4 works. 17 int4 i4; 19 i4 = __builtin_astype(f3, int4);
|
/external/spirv-llvm/lib/SPIRV/runtime/OpenCL/inc/ |
D | spirv_convert.h | 1177 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4(half4); 1178 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_rtz(half4); 1179 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_rte(half4); 1180 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_rtp(half4); 1181 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_rtn(half4); 1182 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_sat(half4); 1183 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_sat_rtz(half4); 1184 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_sat_rte(half4); 1185 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_sat_rtp(half4); 1186 __attribute__((overloadable)) int4 __spirv_ConvertFToS_Rint4_sat_rtn(half4); [all …]
|
/external/clang/lib/Headers/ |
D | opencl-c.h | 100 typedef int int4 __attribute__((ext_vector_type(4))); typedef 2613 char4 __ovld __cnfn convert_char4_rte(int4); 2614 char4 __ovld __cnfn convert_char4_sat_rte(int4); 2615 char4 __ovld __cnfn convert_char4_rtz(int4); 2616 char4 __ovld __cnfn convert_char4_sat_rtz(int4); 2617 char4 __ovld __cnfn convert_char4_rtp(int4); 2618 char4 __ovld __cnfn convert_char4_sat_rtp(int4); 2619 char4 __ovld __cnfn convert_char4_rtn(int4); 2620 char4 __ovld __cnfn convert_char4_sat_rtn(int4); 2621 char4 __ovld __cnfn convert_char4(int4); [all …]
|
/external/swiftshader/src/Common/ |
D | Types.hpp | 62 ALIGN(16, struct int4 79 bool operator!=(const int4 &rhs) 84 bool operator==(const int4 &rhs)
|
/external/clang/test/SemaTemplate/ |
D | ext-vector-type.cpp | 86 typedef int __attribute__((ext_vector_type(4))) int4; typedef 91 int array1[X0<int4>::value == 1? 1 : -1];
|