/arkcompiler/runtime_core/static_core/compiler/tests/aarch32/ |
H A D | encoder32_test_2.cpp | 132 template <typename Src, typename Dst> 143 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestCast() 145 test->GetEncoder()->EncodeCast(output, std::is_signed_v<Dst>, input, std::is_signed_v<Src>); in TestCast() 149 test->PostWork<Dst>(); in TestCast() 153 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; in TestCast() 161 // Using max size type: type result "Dst" or 32bit to check result, in TestCast() 164 using DstExt = typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type; in TestCast() 168 auto dst = static_cast<DstExt>(static_cast<Dst>(src)); in TestCast() 171 if (std::is_floating_point<Src>() && !std::is_floating_point<Dst>()) { in TestCast() [all...] |
H A D | encoder32_test_1.cpp | 170 template <typename Src, typename Dst> 173 static_assert(sizeof(Src) == sizeof(Dst)); in TestMov2() 178 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 182 test->PostWork<Dst>(); in TestMov2() 186 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; in TestMov2() 196 Dst dst = bit_cast<Dst>(src); in TestMov2() 200 if (!test->CallCode<Src, Dst>(src, dst)) { in TestMov2() 207 Dst dstNan = bit_cast<Dst>(na in TestMov2() [all...] |
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/ |
H A D | encoder64_test_2.cpp | 75 template <typename Src, typename Dst> 82 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestCast() 84 test->GetEncoder()->EncodeCast(output, std::is_signed_v<Dst>, input, std::is_signed_v<Src>); in TestCast() 87 test->PostWork<Dst>(); in TestCast() 91 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; in TestCast() 99 // Using max size type: type result "Dst" or 32bit to check result, in TestCast() 102 using DstExt = typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type; in TestCast() 108 if (std::is_floating_point<Src>() && !std::is_floating_point<Dst>()) { in TestCast() 109 auto minInt = std::numeric_limits<Dst> in TestCast() [all...] |
H A D | encoder64_test_1.cpp | 156 template <typename Src, typename Dst> 159 static_assert(sizeof(Src) == sizeof(Dst)); in TestMov2() 164 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 168 test->PostWork<Dst>(); in TestMov2() 172 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; in TestMov2() 182 Dst dst = bit_cast<Dst>(src); in TestMov2() 186 if (!test->CallCode<Src, Dst>(src, dst)) { in TestMov2() 193 Dst dstNan = bit_cast<Dst>(na in TestMov2() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/ |
H A D | codegen_intrinsics_ets.cpp | 37 Reg Dst() const in Dst() function in ark::compiler::SbAppendArgs 132 cg->CallFastPath(inst, entrypoint, args.Dst(), {}, args.Builder(), args.Value(), klass); in GenerateSbAppendCall() 135 cg->CallFastPath(inst, entrypoint, args.Dst(), {}, args.Builder(), args.Value(), klass); in GenerateSbAppendCall() 199 if (args.DstCanBeUsedAsTemp() && args.Dst().GetId() != reg0.GetId()) { in EncodeSbAppendString() 200 reg2 = args.Dst().As(INT32_TYPE); in EncodeSbAppendString() 246 enc->EncodeMov(args.Dst(), args.Builder()); in EncodeSbAppendString()
|
/arkcompiler/runtime_core/compiler/tests/aarch32/ |
H A D | encoder32_test.cpp | 571 template <typename Src, typename Dst> 574 static_assert(sizeof(Src) == sizeof(Dst)); 579 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); 583 test->PostWork<Dst>(); 587 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; 597 Dst dst = bit_cast<Dst>(src); 601 if (!test->CallCode<Src, Dst>(src, dst)) { 608 Dst dst_nan = bit_cast<Dst>(na 2447 typedef typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type DstExt; TestCast() typedef 2484 typedef typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type DstExt; TestCast() typedef [all...] |
/arkcompiler/runtime_core/compiler/tests/amd64/ |
H A D | encoder64_test.cpp | 573 template <typename Src, typename Dst> 576 static_assert(sizeof(Src) == sizeof(Dst)); in TestMov2() 581 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 585 test->PostWork<Dst>(); in TestMov2() 589 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; in TestMov2() 599 Dst dst = bit_cast<Dst>(src); in TestMov2() 604 if (!test->CallCode<Src, Dst>(src, dst)) { in TestMov2() 611 Dst dst_nan = bit_cast<Dst>(na in TestMov2() 2473 typedef typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type DstExt; TestCast() typedef 2511 typedef typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type DstExt; TestCast() typedef [all...] |
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/ |
H A D | encoder64_test_2.cpp | 179 template <typename Src, typename Dst> 186 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestCast() 188 test->GetEncoder()->EncodeCast(output, std::is_signed_v<Dst>, input, std::is_signed_v<Src>); in TestCast() 195 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; in TestCast() 203 // Using max size type: type result "Dst" or 32bit to check result, in TestCast() 206 using DstExt = typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type; in TestCast() 210 auto dst = static_cast<DstExt>(static_cast<Dst>(src)); in TestCast() 213 if (std::is_floating_point<Src>() && !std::is_floating_point<Dst>()) { in TestCast() 214 auto minInt = std::numeric_limits<Dst> in TestCast() [all...] |
H A D | encoder64_test_1.cpp | 153 template <typename Src, typename Dst> 156 static_assert(sizeof(Src) == sizeof(Dst)); in TestMov2() 161 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 169 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; in TestMov2() 179 Dst dst = bit_cast<Dst>(src); in TestMov2() 183 if (!test->CallCode<Src, Dst>(src, dst)) { in TestMov2() 190 Dst dstNan = bit_cast<Dst>(nan); in TestMov2() 191 if (!test->CallCode<Src, Dst>(na in TestMov2() [all...] |
/arkcompiler/runtime_core/compiler/tests/aarch64/ |
H A D | encoder64_test.cpp | 575 template <typename Src, typename Dst> 578 static_assert(sizeof(Src) == sizeof(Dst)); in TestMov2() 583 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 591 std::cerr << "Unsupported for " << TypeName<Src>() << ", " << TypeName<Dst>() << "\n"; in TestMov2() 601 Dst dst = bit_cast<Dst>(src); in TestMov2() 606 if (!test->CallCode<Src, Dst>(src, dst)) { in TestMov2() 613 Dst dst_nan = bit_cast<Dst>(nan); in TestMov2() 615 if (!test->CallCode<Src, Dst>(na in TestMov2() 2580 typedef typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type DstExt; TestCast() typedef 2617 typedef typename std::conditional<(sizeof(Dst) * BYTE_SIZE) >= WORD_SIZE, Dst, uint32_t>::type DstExt; TestCast() typedef [all...] |