Home
last modified time | relevance | path

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

1234567

/llvm-project/clang/test/CodeGen/
H A Dstrictfp-elementwise-bulitins.cpp7 typedef float float4 __attribute__((ext_vector_type(4))); typedef
16 float4 strict_fadd(float4 a, float4 b) { in strict_fadd()
26 float4 strict_elementwise_abs(float4 a) { in strict_elementwise_abs()
36 float4 strict_elementwise_max(float4 a, float4 b) { in strict_elementwise_max()
46 float4 strict_elementwise_mi
[all...]
H A Dbuiltins-elementwise-math.c7 typedef float float4 __attribute__((ext_vector_type(4))); typedef
25 float4 vf1, float4 vf2, si8 vi1, si8 vi2,
107 float4 vf1, float4 vf2, long long int i1,
190 float4 vf1, float4 vf2, long long int i1,
266 float4 vf1, float4 vf2, long long int i1,
294 const float4 cvf
[all...]
H A 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 …]
H A 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_poison( float4* A, float4 x, float4 y) { in clang_shufflevector_v_v_poison()
H A Darm-swiftcall.c69 typedef float float4 __attribute__((ext_vector_type(4))); typedef
326 float4 fv2;
357 float4 fv2;
946 float4 c0;
953 float4 c0;
954 float4 c1;
961 float4 c0;
962 float4 c1;
963 float4 c2;
964 float4 c
[all...]
H A D64bit-swiftcall.c75 typedef float float4 __attribute__((ext_vector_type(4)));
294 float4 fv2;
326 float4 fv2;
929 float4 c0;
936 float4 c0;
937 float4 c1;
944 float4 c0;
945 float4 c1;
946 float4 c2;
947 float4 c
77 typedef float float4 __attribute__((ext_vector_type(4))); global() typedef
[all...]
/llvm-project/clang/test/Sema/
H A 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];
H A Dbuiltins-elementwise-math.c6 typedef float float4 __attribute__((ext_vector_type(4))); typedef
26 void test_builtin_elementwise_abs(int i, double d, float4 v, int3 iv, unsigned u, unsigned4 uv) { in test_builtin_elementwise_abs()
37 // expected-error@-1 {{assigning to 'int' from incompatible type 'float4' (vector of 4 'float' values)}} in test_builtin_elementwise_abs()
46 void test_builtin_elementwise_add_sat(int i, short s, double d, float4 v, int3 iv, unsigned3 uv, int *p) { in test_builtin_elementwise_add_sat()
63 // expected-error@-1 {{arguments are of different types ('float4' (vector of 4 'float' values) vs 'int3' (vector of 3 'int' values))}} in test_builtin_elementwise_add_sat()
69 // expected-error@-1 {{1st argument must be a vector of integers (was 'float4' (vector of 4 'float' values))}} in test_builtin_elementwise_add_sat()
109 void test_builtin_elementwise_sub_sat(int i, short s, double d, float4 v, int3 iv, unsigned3 uv, int *p) { in test_builtin_elementwise_sub_sat()
126 // expected-error@-1 {{arguments are of different types ('float4' (vector of 4 'float' values) vs 'int3' (vector of 3 'int' values))}} in test_builtin_elementwise_sub_sat()
132 // expected-error@-1 {{1st argument must be a vector of integers (was 'float4' (vector of 4 'float' values))}} in test_builtin_elementwise_sub_sat()
172 void test_builtin_elementwise_max(int i, short s, double d, float4 in test_builtin_elementwise_max()
[all...]
H A Dbuiltins-reduction-math.c3 typedef float float4 __attribute__((ext_vector_type(4))); typedef
11 void test_builtin_reduce_max(int i, float4 v, int3 iv) { in test_builtin_reduce_max()
25 void test_builtin_reduce_min(int i, float4 v, int3 iv) { in test_builtin_reduce_min()
39 void test_builtin_reduce_add(int i, float4 v, int3 iv) { in test_builtin_reduce_add()
53 // expected-error@-1 {{1st argument must be a vector of integers (was 'float4' (vector of 4 'float' values))}} in test_builtin_reduce_add()
56 void test_builtin_reduce_mul(int i, float4 v, int3 iv) { in test_builtin_reduce_mul()
70 // expected-error@-1 {{1st argument must be a vector of integers (was 'float4' (vector of 4 'float' values))}} in test_builtin_reduce_mul()
73 void test_builtin_reduce_xor(int i, float4 v, int3 iv) { in test_builtin_reduce_xor()
87 // expected-error@-1 {{1st argument must be a vector of integers (was 'float4' (vector of 4 'float' values))}} in test_builtin_reduce_xor()
90 void test_builtin_reduce_or(int i, float4
[all...]
H A 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()
63 vec4 = (float4){ 1,2,3,4 }; in test()
H A Dext_vector_casts.c9 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
19 float4 vec4, vec4_2; in test()
31 vec4 = (float4)5.0f; in test()
32 vec4 = (float4)5; in test()
33 vec4 = (float4)vec4_3; in test()
44 vec4 = (float4)vec2; // expected-error {{invalid conversion between ext-vector type 'float4' (vector of 4 'float' values) and 'float2' (vector of 2 'float' values)}} in test()
49 vec4 %= 4; // expected-error {{invalid operands to binary expression ('float4' (vector of 4 'float' values) and 'int')}} in test()
51 ivec4 += vec4; // expected-error {{cannot convert between vector values of different size ('int4' (vector of 4 'int' values) and 'float4' (vector of 4 'float' values))}} in test()
H A Dext_vector_comparisons.c18 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
21 float4 vec, rv; in test2()
39 static float4 test4(void) { in test4()
40 float4 f0, f1; in test4()
/llvm-project/clang/test/CodeGenCXX/
H A Dvector-splat-conversion.cpp20 typedef __attribute__((__ext_vector_type__(4))) float float4; typedef
30 float4 floatsT = (float4)true; in BoolConversion()
32 float4 floatsF = (float4)false; in BoolConversion()
43 constexpr float4 cFloatsT = (float4)true; in BoolConversion()
45 constexpr float4 cFloatsF = (float4)false; in BoolConversion()
H A 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()
/llvm-project/clang/test/CodeGenOpenCL/
H A Dlogical-ops.cl8 typedef float float4 __attribute((ext_vector_type(4)));
12 kernel void floatops(global int4 *out, global float4 *fout) {
14 out[0] = (float4)(1, 1, 1, 1) && 1.0f;
16 out[1] = (float4)(0, 0, 0, 0) && (float4)(0, 0, 0, 0);
19 out[2] = (float4)(0, 0, 0, 0) || (float4)(1, 1, 1, 1);
21 out[3] = (float4)(0, 0, 0, 0) || 0.0f;
24 out[4] = !(float4)(0, 0, 0, 0);
26 out[5] = !(float4)(
[all...]
H A 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); }
H A Dbuiltins-amdgcn-raytracing.cl11 // By default, the 1st argument is i32, the 4/5-th arguments are float4.
17 typedef float float4 __attribute__((ext_vector_type(4)));
25 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
35 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
45 float ray_extent, float4 ray_origin, float4 ray_dir, float4 ray_inv_dir,
55 float ray_extent, float4 ray_origin, half4 ray_dir, half4 ray_inv_dir,
/llvm-project/clang/lib/Headers/hlsl/
H A Dhlsl_intrinsics.h92 float4 abs(float4);
138 float4 acos(float4);
223 bool all(float4);
335 bool any(float4);
441 float4 asin(float4);
503 float4 atan(float4);
[all...]
/llvm-project/llvm/test/CodeGen/ARM/
H A 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 …=*r,=*r,*w"(ptr elementtype(%struct.float4) %c1, ptr elementtype(%struct.float4) %c2, ptr elementt…
/llvm-project/clang/test/SemaOpenCL/
H A Dvector_inc_dec_ops.cl6 typedef __attribute__((ext_vector_type(4))) float float4;
22 ((float4)(1.0f))++; // expected-error{{cannot increment value of type 'float4'}}
23 float4 i;
24 ++i; // expected-error{{cannot increment value of type '__private float4'}}
25 i--; // expected-error{{cannot decrement value of type '__private float4'}}
H A Doperators.cl7 typedef __attribute__((ext_vector_type(4))) float float4;
44 float4 f4 = (float4)(0, 0, 0, 0);
53 float4 f4baf = f4 & 0.0f; // expected-error {{invalid operands}}
54 float4 f4bof = f4 | 0.0f; // expected-error {{invalid operands}}
55 float4 f4bxf = f4 ^ 0.0f; // expected-error {{invalid operands}}
61 float4 f4cst = (float4)(5.5f, 5.5f, 5.5f, 5.5f);
62float4 f4remainder = f4cst % (float4)(2.0f, 2.0f, 2.0f, 2.0f); // expected-error {{invalid operand…
/llvm-project/clang/test/CodeGenCUDA/
H A Dcorrectly-rounded-div.cu11 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
25 __device__ float4 spvectordiv(float4 a, float4 b) { in spvectordiv()
/llvm-project/clang/test/AST/Interp/
H A Dvectors.cpp
/llvm-project/clang/lib/Headers/
H A D__clang_cuda_texture_intrinsics.h152 using __fetch_t = float4;
221 __IMPL_F1(float4, float4, __args, \
232 __IMPL_F1(float4, float4, __args, \
239 __IMPL_F1(float4, int4, __args, __asm_op ".s32." __ctype "\t" __asm_op_args, \
241 __IMPL_F1(float4, uint4, __args, \
271 __device__ static float4 __run(cudaTextureObject_t __obj, __L(__args)); \
484 __device__ static float4 __run(cudaTextureObject_t __obj, float __x,
542 (float __x, float __y, float __z, const float4 *__dPdx,
543 const float4 *__dPdy),
552 (float __x, float __y, float __z, const float4 *__dPdx,
[all …]
/llvm-project/clang/test/SemaCXX/
H A Dvector.cpp407 typedef float float4 __attribute__((vector_size(16))); typedef
414 float4 f(float4 x) { in f()
425 float4 f(float4 x) { in f()
432 float4 f(float4 x) { in f()
442 float4 f(float4 x) { in f()
450 float4
[all...]

1234567