Home
last modified time | relevance | path

Searched refs:ushort (Results 1 – 25 of 42) sorted by relevance

12

/llvm-project-15.0.7/clang/test/Analysis/
H A Dproduce-symbolcast_x86.cpp5 using ushort = unsigned short; typedef
129 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<schar x>)}} in test_schar()
277 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<char x>)}} in test_char()
425 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<short x>)}} in test_short()
573 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<int x>)}} in test_int()
721 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<long x>)}} in test_long()
869 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<llong x>)}} in test_llong()
1017 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<uchar x>)}} in test_uchar()
1059 void test_ushort(ushort x) { in test_ushort()
1165 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{reg_$0<ushort x>}} in test_ushort()
[all …]
H A Dproduce-symbolcast_x64.cpp5 using ushort = unsigned short; typedef
120 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<schar x>)}} in test_schar()
268 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<char x>)}} in test_char()
416 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<short x>)}} in test_short()
564 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<int x>)}} in test_int()
712 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<long x>)}} in test_long()
860 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<llong x>)}} in test_llong()
1008 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{(unsigned short) (reg_$0<uchar x>)}} in test_uchar()
1050 void test_ushort(ushort x) { in test_ushort()
1156 clang_analyzer_dump((ushort)(ushort)x); // expected-warning{{reg_$0<ushort x>}} in test_ushort()
[all …]
/llvm-project-15.0.7/libclc/generic/lib/integer/
H A Dmad_sat.cl9 return clamp((ushort)mad24((ushort)x, (ushort)y, (ushort)z), (ushort)0, (ushort) UCHAR_MAX);
16 _CLC_OVERLOAD _CLC_DEF ushort mad_sat(ushort x, ushort y, ushort z) {
68 _CLC_TERNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, ushort, mad_sat, ushort, ushort, ushort)
H A Dadd_sat.cl8 _CLC_DECL ushort __clc_add_sat_u16(ushort, ushort);
20 ushort r = x + y;
29 _CLC_OVERLOAD _CLC_DEF ushort add_sat(ushort x, ushort y) {
69 _CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, ushort, add_sat, ushort, ushort)
H A Dclz.cl5 return clz((ushort)(uchar)x) - 8;
9 return clz((ushort)x) - 8;
16 _CLC_OVERLOAD _CLC_DEF ushort clz(ushort x) {
39 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, ushort, clz, ushort)
H A Dsub_sat.cl19 _CLC_OVERLOAD _CLC_DEF ushort sub_sat(ushort x, ushort y) {
57 _CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, ushort, sub_sat, ushort, ushort)
H A Dupsample.cl25 __CLC_UPSAMPLE_IMPL(ushort, uchar, uchar, 8) \
26 __CLC_UPSAMPLE_IMPL(int, short, ushort, 16) \
27 __CLC_UPSAMPLE_IMPL(uint, ushort, ushort, 16) \
/llvm-project-15.0.7/libclc/generic/include/clc/integer/
H A Dupsample.h14 __CLC_UPSAMPLE_VEC(ushort, uchar, uchar) \
15 __CLC_UPSAMPLE_VEC(int, short, ushort) \
16 __CLC_UPSAMPLE_VEC(uint, ushort, ushort) \
H A Dgentype.inc139 #define __CLC_U_GENTYPE ushort
201 #define __CLC_SCALAR_GENTYPE ushort
203 #define __CLC_GENTYPE ushort
204 #define __CLC_U_GENTYPE ushort
/llvm-project-15.0.7/libclc/generic/include/clc/
H A Dclctypes.h4 typedef unsigned short ushort; typedef
43 typedef __attribute__((ext_vector_type(2))) ushort ushort2;
44 typedef __attribute__((ext_vector_type(3))) ushort ushort3;
45 typedef __attribute__((ext_vector_type(4))) ushort ushort4;
46 typedef __attribute__((ext_vector_type(8))) ushort ushort8;
47 typedef __attribute__((ext_vector_type(16))) ushort ushort16;
H A Dconvert.h18 _CLC_VECTOR_CONVERT_DECL(FROM_TYPE, ushort, SUFFIX) \
38 _CLC_VECTOR_CONVERT_FROM(ushort, SUFFIX) \
/llvm-project-15.0.7/libclc/generic/include/clc/misc/
H A Dshuffle.h29 _CLC_VECTOR_SHUFFLE_INSIZE(short, ushort)
33 _CLC_VECTOR_SHUFFLE_INSIZE(ushort, ushort)
41 _CLC_VECTOR_SHUFFLE_INSIZE(half, ushort)
H A Dshuffle2.h29 _CLC_VECTOR_SHUFFLE2_INSIZE(short, ushort)
33 _CLC_VECTOR_SHUFFLE2_INSIZE(ushort, ushort)
41 _CLC_VECTOR_SHUFFLE2_INSIZE(half, ushort)
/llvm-project-15.0.7/libclc/generic/lib/math/
H A Dnan.inc16 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE nan(__CLC_XCONCAT(ushort, __CLC_VECSIZE) code)
18 const ushort mask = 0x7e00;
19 const __CLC_XCONCAT(ushort, __CLC_VECSIZE) res = code | mask;
H A Dcopysign.cl20 ushort sign_x = as_ushort(x) & 0x8000u;
21 ushort unsigned_y = as_ushort(y) & 0x7ffffu;
23 return as_half((ushort)(sign_x | unsigned_y));
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dubsan-promoted-arith.cpp4 typedef unsigned short ushort; typedef
61 ushort mul3(ushort us) { return us * us; } in mul3()
/llvm-project-15.0.7/clang/lib/Headers/
H A Dopencl-c.h9130 ushort __ovld __cnfn hadd(ushort, ushort);
9183 ushort __ovld __cnfn rhadd(ushort, ushort);
9236 ushort __ovld __cnfn clamp(ushort, ushort, ushort);
9437 ushort __ovld __cnfn mad_hi(ushort, ushort, ushort);
9489 ushort __ovld __cnfn mad_sat(ushort, ushort, ushort);
9541 ushort __ovld __cnfn max(ushort, ushort);
9633 ushort __ovld __cnfn min(ushort, ushort);
9726 ushort __ovld __cnfn mul_hi(ushort, ushort);
9783 ushort __ovld __cnfn rotate(ushort, ushort);
10958 ushort __ovld __cnfn bitselect(ushort, ushort, ushort);
[all …]
H A Dopencl-c-base.h100 typedef unsigned short ushort; typedef
158 typedef ushort ushort2 __attribute__((ext_vector_type(2)));
159 typedef ushort ushort3 __attribute__((ext_vector_type(3)));
160 typedef ushort ushort4 __attribute__((ext_vector_type(4)));
161 typedef ushort ushort8 __attribute__((ext_vector_type(8)));
162 typedef ushort ushort16 __attribute__((ext_vector_type(16)));
556 #define as_ushort(x) __builtin_astype((x), ushort)
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dmad.u16.ll9 ; GCN: {{flat|global}}_load_{{ushort|u16}} v[[A:[0-9]+]]
10 ; GCN: {{flat|global}}_load_{{ushort|u16}} v[[B:[0-9]+]]
11 ; GCN: {{flat|global}}_load_{{ushort|u16}} v[[C:[0-9]+]]
/llvm-project-15.0.7/libclc/generic/lib/misc/
H A Dshuffle.cl124 _CLC_VECTOR_SHUFFLE_INSIZE(short, ushort)
128 _CLC_VECTOR_SHUFFLE_INSIZE(ushort, ushort)
138 _CLC_VECTOR_SHUFFLE_INSIZE(half, ushort)
H A Dshuffle2.cl128 _CLC_VECTOR_SHUFFLE_INSIZE(short, ushort)
132 _CLC_VECTOR_SHUFFLE_INSIZE(ushort, ushort)
142 _CLC_VECTOR_SHUFFLE_INSIZE(half, ushort)
/llvm-project-15.0.7/libclc/generic/include/clc/math/
H A Dnan.inc10 #define __CLC_NATN __CLC_XCONCAT(ushort, __CLC_VECSIZE)
/llvm-project-15.0.7/libclc/generic/include/clc/relational/
H A Dselect.inc13 #define __CLC_U_GENTYPE __CLC_XCONCAT(ushort, __CLC_VECSIZE)
/llvm-project-15.0.7/libclc/generic/lib/relational/
H A Dselect.inc13 #define __CLC_U_GENTYPE __CLC_XCONCAT(ushort, __CLC_VECSIZE)
/llvm-project-15.0.7/libclc/generic/include/integer/
H A Dunary_intrin.inc12 __CLC_INTRINSIC_DEF(ushort, "16")

12