Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/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 …"(%struct.float4* elementtype(%struct.float4) %c1, %struct.float4* elementtype(%struct.float4) %c2…
11 %x = getelementptr inbounds %struct.float4, %struct.float4* %c3, i32 0, i32 0
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dext-vector.c9 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;
64 float4 b; in test5()
76 void test6(float4 *ap, float4 *bp, float c) { in test6()
77 float4 a = *ap; in test6()
78 float4 b = *bp; in test6()
196 void test8(float4 *ap, float4 *bp, int c) { in test8()
197 float4 a = *ap; in test8()
[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_undef( float4* A, float4 x, float4 y) { in clang_shufflevector_v_v_undef()
H A Dbuiltins-elementwise-math.c12 float4 vf1, float4 vf2, si8 vi1, si8 vi2,
60 float4 vf1, float4 vf2, long long int i1,
109 float4 vf1, float4 vf2, long long int i1,
158 float4 vf1, float4 vf2, long long int i1,
220 const float4 cvf1 = vf1;
238 float4 vf1, float4 vf2, long long int i1,
306 const float4 cvf1 = vf1;
321 float4 vf1, float4 vf2) { in test_builtin_elementwise_ceil()
337 float4 vf1, float4 vf2) { in test_builtin_elementwise_floor()
353 float4 vf1, float4 vf2) { in test_builtin_elementwise_roundeven()
[all …]
H A Darm-swiftcall.c974 float4 c0;
981 float4 c0;
982 float4 c1;
989 float4 c0;
990 float4 c1;
991 float4 c2;
992 float4 c3;
999 float4 c0;
1000 float4 c1;
1001 float4 c2;
[all …]
H A D64bit-swiftcall.c317 float4 fv2;
964 float4 c0;
971 float4 c0;
972 float4 c1;
979 float4 c0;
980 float4 c1;
981 float4 c2;
982 float4 c3;
989 float4 c0;
990 float4 c1;
[all …]
H A 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()
H A Dvector.cpp3 typedef __attribute__((__vector_size__(16))) float float4; typedef
16 int4 test2(float4 V0, float4 V1) { in test2()
/llvm-project-15.0.7/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-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()
56 void test_builtin_reduce_mul(int i, float4 v, int3 iv) { in test_builtin_reduce_mul()
73 void test_builtin_reduce_xor(int i, float4 v, int3 iv) { in test_builtin_reduce_xor()
90 void test_builtin_reduce_or(int i, float4 v, int3 iv) { in test_builtin_reduce_or()
107 void test_builtin_reduce_and(int i, float4 v, int3 iv) { in test_builtin_reduce_and()
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
18 float4 vec4, vec4_2; in test()
29 vec4 = (float4)5.0f; in test()
30 vec4 = (float4)5; in test()
31 vec4 = (float4)vec4_3; in test()
42 …vec4 = (float4)vec2; // expected-error {{invalid conversion between ext-vector type 'float4' (vect… 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()
H A Dbuiltins-elementwise-math.c3 typedef float float4 __attribute__((ext_vector_type(4))); typedef
16 void test_builtin_elementwise_abs(int i, double d, float4 v, int3 iv, unsigned u, unsigned4 uv) { in test_builtin_elementwise_abs()
36 void test_builtin_elementwise_add_sat(int i, short s, double d, float4 v, int3 iv, unsigned3 uv, in… in test_builtin_elementwise_add_sat()
94 void test_builtin_elementwise_sub_sat(int i, short s, double d, float4 v, int3 iv, unsigned3 uv, in… in test_builtin_elementwise_sub_sat()
152 void test_builtin_elementwise_max(int i, short s, double d, float4 v, int3 iv, unsigned3 uv, int *p… in test_builtin_elementwise_max()
207 void test_builtin_elementwise_min(int i, short s, double d, float4 v, int3 iv, unsigned3 uv, int *p… in test_builtin_elementwise_min()
262 void test_builtin_elementwise_ceil(int i, float f, double d, float4 v, int3 iv, unsigned u, unsigne… in test_builtin_elementwise_ceil()
283 void test_builtin_elementwise_floor(int i, float f, double d, float4 v, int3 iv, unsigned u, unsign… in test_builtin_elementwise_floor()
304 void test_builtin_elementwise_roundeven(int i, float f, double d, float4 v, int3 iv, unsigned u, un… in test_builtin_elementwise_roundeven()
325 void test_builtin_elementwise_trunc(int i, float f, double d, float4 v, int3 iv, unsigned u, unsign… in test_builtin_elementwise_trunc()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dvector-splat-conversion.cpp21 typedef __attribute__((__ext_vector_type__(4))) float float4; typedef
31 float4 floatsT = (float4)true; in BoolConversion()
33 float4 floatsF = (float4)false; in BoolConversion()
44 constexpr float4 cFloatsT = (float4)true; in BoolConversion()
46 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-15.0.7/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)(1, 2, 3, 4);
28 out[6] = !(float4)(0, 1, 0, 1);
30 fout[0] = (float4)(!0.0f);
[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-15.0.7/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-15.0.7/clang/test/SemaCXX/
H A Dvector.cpp406 typedef float float4 __attribute__((vector_size(16))); typedef
413 float4 f(float4 x) { in f()
424 float4 f(float4 x) { in f()
431 float4 f(float4 x) { in f()
441 float4 f(float4 x) { in f()
449 float4 f(float4 x) { in f()
457 float4 f(float4 x) { in f()
472 float4 f(float4 x) { in f()
481 float4 theFloat4; in use()
/llvm-project-15.0.7/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-15.0.7/llvm/test/CodeGen/X86/
H A Dasm-reject-x87-int.ll12 ; typedef struct float4 {
14 ; } float4;
17 ; float4 f4;
23 %struct.float4 = type { float }
29 %f4 = alloca %struct.float4, align 4
/llvm-project-15.0.7/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, \
542 (float __x, float __y, float __z, const float4 *__dPdx,
543 const float4 *__dPdy),
552 (float __x, float __y, float __z, const float4 *__dPdx,
553 const float4 *__dPdy, unsigned char *__ir),
596 (float __x, float __y, float __z, const float4 *__dPdx,
597 const float4 *__dPdy),
613 const float4 *__dPdy),
[all …]

12345