Home
last modified time | relevance | path

Searched refs:UInt8 (Results 1 – 9 of 9) sorted by relevance

/frameworks/libs/binary_translation/base/
Dbit_util_test.cc97 static_assert(UInt8{255} + UInt8{1} == UInt8{0});
107 static_assert(UInt8{0} - UInt8{1} == UInt8{255});
129 static_assert(UInt8{255} * UInt8{255} == UInt8{1});
139 static_assert(UInt8{255} / UInt8{1} == UInt8{255});
144 static_assert((UInt8{123} << UInt8{8}) == UInt8{123});
145 static_assert((UInt8{123} << UInt8{65}) == UInt8{246});
150 static_assert((UInt8{123} >> UInt8{8}) == UInt8{123});
151 static_assert((UInt8{123} >> UInt8{65}) == UInt8{61});
186 static_assert(BitCastToSigned(UInt8{128}) == Int8{-128});
188 static_assert(BitCastToUnsigned(Int8{-128}) == UInt8{128});
/frameworks/libs/binary_translation/intrinsics/riscv64/
Dvector_intrinsics_test.cc107 TestVidv<UInt8>(); in TEST()
166 Verify(Vaddvv<UInt8>, in TEST()
169 Verify(Vaddvv<UInt8>, in TEST()
194 kUndisturbedResult, std::get<0>(Vaddvx(arg1, UInt8{1})), 0, 16)), in TEST()
200 kUndisturbedResult, std::get<0>(Vaddvx(arg1, UInt8{1})), 0, 16, RawInt16{0xffff})), in TEST()
203 Verify(Vaddvx<UInt8>, in TEST()
206 Verify(Vaddvx<UInt8>, in TEST()
280 Verify(Vaddvv<UInt8>, in TEST()
284 Verify(Vaddvv<UInt8>, in TEST()
323 kUndisturbedResult, std::get<0>(Vaddvx(arg1, UInt8{1})), 0, kHalfLen)), in TEST()
[all …]
/frameworks/libs/binary_translation/interpreter/riscv64/
Dinterpreter_test.cc168 VlxsegXeiXX<ElementType, UInt8, kNFfields, kLmul>(insn_bytes, expected_results); in VlxsegXeiXX()
169 VlxsegXeiXX<ElementType, UInt8, kNFfields, kLmul>(insn_bytes | 0x8000000, expected_results); in VlxsegXeiXX()
332 UInt8 expected_element; in TestVlm()
334 expected_element = SIMD128Register{kUndisturbedResult}.Get<UInt8>(element); in TestVlm()
336 expected_element = ~UInt8{0}; in TestVlm()
338 expected_element = UInt8{expected_results[element]}; in TestVlm()
340 EXPECT_EQ(SIMD128Register{state_.cpu.v[8]}.Get<UInt8>(element), expected_element); in TestVlm()
352 VsxsegXeiXX<ElementType, UInt8, kNFfields, kLmul>(insn_bytes, expected_results); in VsxsegXeiXX()
353 VsxsegXeiXX<ElementType, UInt8, kNFfields, kLmul>(insn_bytes | 0x8000000, expected_results); in VsxsegXeiXX()
561 UInt8 expected_element; in TestVsm()
[all …]
Dinterpreter.h560 return OpVector<UInt8>(args, vtype, extra_args...); in OpVector()
596 return OpVector<UInt8>(args, vlmul, vtype, extra_args...); in OpVector()
796 return OpVector<UInt8, kSegmentSize, IndexElementType, kIndexRegistersInvolved, vta, vma>( in OpVector()
990 return OpVectorLoad<UInt8, in OpVector()
1038 using MaskType = std::conditional_t<sizeof(ElementType) == sizeof(Int8), UInt16, UInt8>;
2872 return OpVectorStore<UInt8, in OpVector()
2894 using MaskType = std::conditional_t<sizeof(ElementType) == sizeof(Int8), UInt16, UInt8>;
4088 bitmask_result |= UInt32(UInt8(raw_result)) << (index * kElemNum); in CollectBitmaskResult()
/frameworks/libs/binary_translation/intrinsics/include/berberis/intrinsics/
Dintrinsics_fixed_point_impl.h128 UInt8 fraction_digits{ in Roundoff()
131 if (fraction_digits == UInt8{0}) [[unlikely]] { in Roundoff()
136 result += (value >> (fraction_digits - UInt8{1})) & decltype(value){1}; in Roundoff()
139 result += ((value >> (fraction_digits - UInt8{1})) & decltype(value){1}) & in Roundoff()
140 (decltype(value){(value & ((decltype(value){1} << (fraction_digits - UInt8{1})) - in Roundoff()
Dsimd_register.h311 SIMD_128_SAFEINT_REGISTER_GETTER_SETTER(UInt8, uint8);
/frameworks/libs/binary_translation/intrinsics/riscv64_to_x86_64/include/berberis/intrinsics/
Dvector_intrinsics.h119 static_assert(sizeof(ElementType) == sizeof(UInt8) || sizeof(ElementType) == sizeof(UInt16) || in Vidv()
121 const int32_t kVid = (sizeof(ElementType) == sizeof(UInt8)) ? constants_pool::kVid8Bit in Vidv()
/frameworks/libs/binary_translation/intrinsics/riscv64/include/berberis/intrinsics/riscv64/
Dvector_intrinsics.h88 return {RawInt8{TruncateTo<UInt8>(mask.Get<UInt32>(0) >> UInt64(register_in_sequence * 4)) & in MaskForRegisterInSequence()
89 UInt8{0b1111}}}; in MaskForRegisterInSequence()
91 return {RawInt8{TruncateTo<UInt8>(mask.Get<UInt32>(0) >> UInt64(register_in_sequence * 2)) & in MaskForRegisterInSequence()
92 UInt8{0b11}}}; in MaskForRegisterInSequence()
147 using ResultType = std::conditional_t<sizeof(ElementType) == sizeof(Int8), UInt16, UInt8>; in SimdMaskToBitMaskForTests()
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h746 using UInt8 = Wrapping<uint8_t>; variable