Home
last modified time | relevance | path

Searched refs:int4 (Results 1 – 21 of 21) sorted by relevance

/external/clang/test/CodeGenOpenCL/
Dvector_literals_valid.cl5 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);
Dshifts.cl30 typedef __attribute__((ext_vector_type(4))) int int4;
33 int4 vectorVectorTest(int4 a,int4 b) {
36 int4 c = a << b;
38 int4 d = {1, 1, 1, 1};
39 int4 e = {33, 34, -28, -29};
40 int4 f = c + (d << e);
46 int4 vectorScalarTest(int4 a,int b) {
51 int4 c = a << b;
53 int4 d = {1, 1, 1, 1};
54 int4 f = c + (d << 34);
Dvector_literals_nested.cl4 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)));
Dlogical-ops.cl5 typedef int int4 __attribute((ext_vector_type(4)));
11 kernel void floatops(global int4 *out, global float4 *fout) {
/external/clang/test/SemaOpenCL/
Dvector_literals_const.cl6 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));
Dvector_conv_invalid.cl4 typedef int int4 __attribute((ext_vector_type(4)));
10int4 i = u; // expected-error{{initializing 'int4' with an expression of incompatible type 'uint4'…
11int4 e = (int4)u; // expected-error{{invalid conversion between ext-vector type 'int4' and 'uint4'…
Dvector_literals_invalid.cl4 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}}
Dinvalid-logical-ops-1.2.cl6 typedef __attribute__((ext_vector_type(4))) int int4;
25 int4 f4laf = f4 && 0.0f;
26 int4 f4lof = f4 || 0.0f;
31 int4 lnf4 = !f4;
Dvec_step.cl5 typedef int int4 __attribute__((ext_vector_type(4)));
10 int4 auto1;
24 int res9[vec_step(int4) == 4 ? 1 : -1];
Dinvalid-logical-ops-1.1.cl6 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/
Dpalignr.c5 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()
Dext-vector.c5 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 …]
/external/clang/test/Sema/
Dext_vector_casts.c4 typedef __attribute__(( ext_vector_type(4) )) int int4; typedef
12 int4 ivec4; in test()
23 ivec4 = (int4)5.0f; in test()
24 ivec4 = (int4)5; in test()
25 ivec4 = (int4)vec4_3; in test()
30 …ivec4 = (int4)ptr; // expected-error {{invalid conversion between vector type 'int4' and scalar ty… in test()
41 ivec4 += (int4)vec4; in test()
Dext_vector_comparisons.c3 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()
Dconversion-64-32.c9 typedef int int4 __attribute__ ((vector_size(16))); typedef
12 int4 test1(long2 a) { in test1()
13 int4 v127 = a; // no warning. in test1()
Dtypedef-retain.c4 typedef int int4 __attribute__((vector_size(16))); typedef
5 typedef int4* int4p;
7 void test1(float4 a, int4 *result, int i) { in test1()
Dtransparent-union.c68 typedef int int4 __attribute__((ext_vector_type(4))); typedef
70int4 vec; // expected-warning{{first field of a transparent union cannot have vector type 'int4'; …
/external/clang/test/Parser/
Dopencl-astype.cl8 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/chromium_org/third_party/angle/src/compiler/
DInitialize.cpp26 TType *int4 = new TType(EbtInt, EbpUndefined, EvqGlobal, 4); in InsertBuiltInFunctions() local
262 symbolTable.insertBuiltIn(bool4, "lessThan", int4, int4); in InsertBuiltInFunctions()
270 symbolTable.insertBuiltIn(bool4, "lessThanEqual", int4, int4); in InsertBuiltInFunctions()
278 symbolTable.insertBuiltIn(bool4, "greaterThan", int4, int4); in InsertBuiltInFunctions()
286 symbolTable.insertBuiltIn(bool4, "greaterThanEqual", int4, int4); in InsertBuiltInFunctions()
294 symbolTable.insertBuiltIn(bool4, "equal", int4, int4); in InsertBuiltInFunctions()
306 symbolTable.insertBuiltIn(bool4, "notEqual", int4, int4); in InsertBuiltInFunctions()
/external/clang/test/SemaTemplate/
Dext-vector-type.cpp86 typedef int __attribute__((ext_vector_type(4))) int4; typedef
91 int array1[X0<int4>::value == 1? 1 : -1];
/external/llvm/test/CodeGen/SystemZ/
Dfp-move-02.ll135 %int4 = bitcast double %biased4 to i64
159 %or4 = or i64 %or3, %int4
195 %int4 = load volatile i64 *@iptr
196 %masked4 = and i64 %int4, %mask
254 %int4 = phi i64 [ 0, %entry ], [ %add4, %loop ]
266 %add4 = add i64 %int4, %bias