| /llvm-project-15.0.7/clang/test/SemaOpenCL/ |
| H A D | vector-conv.cl | 4 typedef int int4 __attribute((ext_vector_type(4))); 8 void vector_conv_invalid(const global int4 *const_global_ptr) { 10 …int4 i = u; // expected-error{{initializing '__private int4' (vector of 4 'int' values) with an ex… 11 …int4 e = (int4)u; // expected-error{{invalid conversion between ext-vector type 'int4' (vector of … 15 e = (const int4)i; 16 e = (constant int4)i; 17 e = (private int4)i; 19 …ivate int4 *private_ptr = (const private int4 *)const_global_ptr; // expected-error{{casting 'cons… 20 …int4 *global_ptr = const_global_ptr; // expected-warning {{initializing '__global … 21 global_ptr = (global int4 *)const_global_ptr;
|
| H A D | format-strings-fixit.cl | 21 printf("%v4f", (int4) 123); 22 // CHECK: printf("%v4hld", (int4) 123); 24 printf("%v8d", (int4) 123); 25 // CHECK: printf("%v4hld", (int4) 123); 36 printf("%v4hlf", (int4) 123); 37 // CHECK: printf("%v4hld", (int4) 123); 39 printf("%v8hld", (int4) 123); 40 // CHECK: printf("%v4hld", (int4) 123); 48 printf("%v4hd", (int4) 123); 49 // CHECK: printf("%v4hld", (int4) 123); [all …]
|
| H A D | invalid-vector-literals.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}} 12 ((int4)(0)).x = 8; // expected-error{{expression is not assignable}}
|
| H A 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];
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A 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()
|
| H A D | ext-vector.c | 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() 240 int4 test12(int4 V) { in test12() 247 int4 test13(int4 *V) { in test13() 255 int4 d; in test14() [all …]
|
| H A D | arm-swiftcall.c | 410 TEST(int4) 849 int4 c0; 856 int4 c0; 857 int4 c1; 864 int4 c0; 865 int4 c1; 866 int4 c2; 873 int4 c0; 874 int4 c1; 875 int4 c2; [all …]
|
| H A D | 64bit-swiftcall.c | 382 TEST(int4) 839 int4 c0; 846 int4 c0; 847 int4 c1; 854 int4 c0; 855 int4 c1; 856 int4 c2; 863 int4 c0; 864 int4 c1; 865 int4 c2; [all …]
|
| H A D | vector.cpp | 4 typedef __attribute__((__vector_size__(16))) int int4; typedef 8 int4 test1(uint4 V0) { in test1() 11 int4 V = !V0; in test1() 16 int4 test2(float4 V0, float4 V1) { in test2() 19 int4 V = !V0; in test2()
|
| H A D | ubsan-promoted-arith.cpp | 5 typedef int int4 __attribute__((ext_vector_type(4))); typedef 131 int4 vrem(int4 a, int4 b) { return a % b; } in vrem()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A 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()
|
| /llvm-project-15.0.7/clang/test/CodeGenOpenCL/ |
| H A D | vector_literals.cl | 6 typedef __attribute__((ext_vector_type(4))) int int4; 10 __constant const int4 c1 = (int4)(1, 2, ((int2)(3))); 13 __constant const int4 c2 = (int4)(1, 2, ((int2)(3, 4))); 19 int4 a_1_1_1_1 = (int4)(1, 2, c1.s2, c2.s3); 26 int4 a_2_1_1 = (int4)((int2)(1, 2), 3, 4); 32 int4 a_1_2_1 = (int4)(1, (int2)(2, 3), 4); 37 int4 a_1_1_2 = (int4)(1, 2, (int2)(3, 4)); 43 int4 a_2_2 = (int4)((int2)(1, 2), (int2)(3)); 49 int4 a_1_3 = (int4)(1, (int3)(2, 3, 4)); 52 int4 a = (int4)(1);
|
| H A 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; 70 int4 d = {1, 1, 1, 1}; 71 int4 f = c + (d << 34);
|
| H A D | partial_initializer.cl | 4 typedef __attribute__(( ext_vector_type(4) )) int int4; 22 int4 GV1 = (int4)((int2)(1,2),3,4); 25 int4 GV2 = (int4)(1); 61 int4 V1 = (int4)((int2)(1,2),3,4); 64 int4 V2 = (int4)(1);
|
| H A D | bool_cast.cl | 4 typedef unsigned int int4 __attribute((ext_vector_type(4))); 10 int4 vec4 = (int4)t;
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A 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()
|
| H A D | ext_vector_comparisons.c | 3 typedef __attribute__(( ext_vector_type(4) )) int int4; typedef 5 static int4 test1(void) { in test1() 6 int4 vec, rv; in test1() 20 static int4 test2(void) { in test2() 32 static int4 test3(void) { in test3() 33 int4 i0, i1; in test3()
|
| H A 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()
|
| H A 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()
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter-tests/ |
| H A D | optnone-vectors-and-functions.cpp | 15 typedef int int4 __attribute__((ext_vector_type(4))); typedef 19 struct TypeTraits<int4> { 24 unsigned TypeTraits<int4>::MysteryNumber = 3U; 127 int4 a = (int4){1,2,3,4}; in main() 128 int4 b = (int4){5,6,7,8}; in main() 130 int4 tmp = test1(a,b); in main()
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A 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);
|
| /llvm-project-15.0.7/libclc/r600/lib/image/ |
| H A D | read_imagei.cl | 5 int4 __clc_reinterpret_v4f_to_v4i(float4 v) { 7 int4 v4i; 13 _CLC_OVERLOAD _CLC_DEF int4 read_imagei(image2d_t image, sampler_t sampler, 19 _CLC_OVERLOAD _CLC_DEF int4 read_imagei(image2d_t image, sampler_t sampler,
|
| /llvm-project-15.0.7/libclc/generic/include/clc/image/ |
| H A D | image.h | 16 _CLC_OVERLOAD _CLC_DECL int4 get_image_dim (image3d_t image); 21 write_imagei(image2d_t image, int2 coord, int4 color); 29 _CLC_OVERLOAD _CLC_DECL int4 31 _CLC_OVERLOAD _CLC_DECL int4
|
| /llvm-project-15.0.7/clang/test/CodeGenOpenCLCXX/ |
| H A D | constexpr.clcpp | 4 typedef int int4 __attribute__((ext_vector_type(4))); 36 const int oneElt = int4(3).x; 37 const int2 twoElts = (int4)(11, 22, 33, 44).yz; 60 constexpr int vsize2 = vec_step(int4);
|
| /llvm-project-15.0.7/clang/test/SemaOpenCLCXX/ |
| H A D | invalid-kernel.clcpp | 43 typedef int int4 __attribute__((ext_vector_type(4))); 45 kernel void int4_v(int4 in); 46 kernel void int4_p(__global int4 *in); 47 kernel void int4_p_p(__global int4 *__global *in); 48 kernel void int4_r(__global int4 &in);
|