Home
last modified time | relevance | path

Searched refs:Div (Results 1 – 8 of 8) sorted by relevance

/frameworks/libs/binary_translation/intrinsics/riscv64/
Dintrinsics_test.cc75 TEST(Intrinsics, Div) { in TEST() argument
76 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{0})), int8_t{-1}); in TEST()
77 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{-1})), int8_t{-128}); in TEST()
78 ASSERT_EQ(std::get<0>(Div<int8_t>(int8_t{-128}, int8_t{-2})), int8_t{64}); in TEST()
79 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{0})), uint8_t{255}); in TEST()
80 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{1})), uint8_t{128}); in TEST()
81 ASSERT_EQ(std::get<0>(Div<uint8_t>(uint8_t{128}, uint8_t{2})), uint8_t{64}); in TEST()
82 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{0})), int16_t{-1}); in TEST()
83 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{-1})), int16_t{-32768}); in TEST()
84 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{-2})), int16_t{16384}); in TEST()
[all …]
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Ddiv_test.cc21 TEST(Div, Div) { in TEST() argument
29 TEST(Div, LDiv) { in TEST() argument
37 TEST(Div, LLDiv) { in TEST() argument
45 TEST(Div, IMaxDiv) { in TEST() argument
/frameworks/libs/binary_translation/intrinsics/riscv64_to_x86_64/include/berberis/intrinsics/
Dmacro_assembler_arith_impl.h77 Div<IntType>(src); in MacroDiv()
136 Div<IntType>(src); in MacroRem()
/frameworks/libs/binary_translation/base/
Dbit_util_test.cc131 static_assert(Div(SatInt8{127}, SatInt8{1}) == std::tuple{SatInt8{127}, false});
132 static_assert(Div(SatInt8{-128}, SatInt8{-1}) == std::tuple{SatInt8{127}, true});
137 static_assert(Div(SatUInt8{255}, SatUInt8{1}) == std::tuple{SatUInt8{255}, false});
/frameworks/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Dsemantics_player.h415 return listener_->template Div<int64_t>(arg1, arg2); in Op()
417 return listener_->template Div<uint64_t>(arg1, arg2); in Op()
457 return listener_->template Div<int32_t>(arg1, arg2); in Op()
459 return listener_->template Div<uint32_t>(arg1, arg2); in Op()
/frameworks/libs/binary_translation/intrinsics/common_to_x86/include/berberis/intrinsics/
Dmacro_assembler-inl.h212 DEFINE_ARITH_INSTRUCTION(Div, Div, kUnsignedIntType)
213 DEFINE_ARITH_INSTRUCTION(Div, Idiv, kSignedIntType)
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h536 [[nodiscard]] friend constexpr std::tuple<Saturating, bool> Div(Saturating lhs, Saturating rhs) { in Div() function
545 return std::get<0>(Div(lhs, rhs));
/frameworks/libs/binary_translation/intrinsics/riscv64/include/berberis/intrinsics/riscv64/
Dvector_intrinsics.h1197 ElementType{std::get<0>(Div(static_cast<typename ElementType::BaseType>(args)...))})
1200 ElementType{std::get<0>(Div(static_cast<typename ElementType::BaseType>(args)...))})