Home
last modified time | relevance | path

Searched refs:vtype (Results 1 – 16 of 16) sorted by relevance

/frameworks/libs/binary_translation/intrinsics/riscv64/
Dvector_intrinsics.cc32 inline uint64_t VtypeToVlMax(uint8_t vtype) { in VtypeToVlMax() argument
42 return kVtypeToVlMax[vtype & 0b111'111]; in VtypeToVlMax()
57 std::tuple<uint64_t, uint64_t> Vsetivli(uint8_t avl, uint16_t vtype) { in Vsetivli() argument
58 return Vsetvli(avl, vtype); in Vsetivli()
61 std::tuple<uint64_t, uint64_t> Vsetvl(uint64_t avl, uint64_t vtype) { in Vsetvl() argument
62 uint64_t vlmax = VtypeToVlMax(vtype); in Vsetvl()
68 return {AvlToVl(avl, vlmax), vtype & kVtypeNoVill}; in Vsetvl()
71 std::tuple<uint64_t, uint64_t> Vsetvli(uint64_t avl, uint16_t vtype) { in Vsetvli() argument
72 uint64_t vlmax = VtypeToVlMax(vtype); in Vsetvli()
78 return {AvlToVl(avl, vlmax), vtype}; in Vsetvli()
[all …]
/frameworks/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Dsemantics_player.h894 auto [vl, vtype] = listener_->Vtestvli(vl_orig, vtype_orig, args.vtype); in Vsetivli()
895 SetVlAndVtypeCsr(vl, vtype); in Vsetivli()
897 auto [vl, vtype] = listener_->Vsetvlimax(args.vtype); in Vsetivli()
898 SetVlAndVtypeCsr(vl, vtype); in Vsetivli()
902 auto [vl, vtype] = listener_->Vsetivli(args.avl, args.vtype); in Vsetivli()
903 SetVlAndVtypeCsr(vl, vtype); in Vsetivli()
913 auto [vl, vtype] = listener_->Vtestvl(vl_orig, vtype_orig, vtype_new); in Vsetvl()
914 SetVlAndVtypeCsr(vl, vtype); in Vsetvl()
916 auto [vl, vtype] = listener_->Vsetvlmax(vtype_new); in Vsetvl()
917 SetVlAndVtypeCsr(vl, vtype); in Vsetvl()
[all …]
Ddecoder.h933 uint16_t vtype; member
939 uint16_t vtype; member
2185 .vtype = GetBits<20, 11>(), in DecodeOpV()
2192 .vtype = GetBits<20, 10>(), in DecodeOpV()
/frameworks/libs/binary_translation/interpreter/riscv64/
Dinterpreter_test.cc96 .cpu = {.vtype = uint64_t{1} << 63, .frm = intrinsics::GuestModeFromHostRounding()}} {} in Riscv64InterpreterTest()
118 state_.cpu.vtype = (BitUtilLog2(sizeof(ElementType)) << 3) | /*vlmul=*/1; in TestFPExceptions()
239 state_.cpu.vtype = (vma & 1) << 7 | (vta << 6) | in TestVectorLoad()
322 state_.cpu.vtype = (vma << 7) | (vta << 6) | (sew << 3) | vlmul; in TestVlm()
413 state_.cpu.vtype = (BitUtilLog2(sizeof(ElementType)) << 3) | BitUtilLog2(kLmul); in TestVectorStore()
453 state_.cpu.vtype = (BitUtilLog2(sizeof(ElementType)) << 3) | BitUtilLog2(kLmul); in TestVectorStore()
504 state_.cpu.vtype = (vma & 1) << 7 | (vta << 6) | in TestVectorStore()
547 state_.cpu.vtype = (vma << 7) | (vta << 6) | (sew << 3) | vlmul; in TestVsm()
593 auto [vlmax, vtype] = intrinsics::Vsetvl(~0ULL, (vsew << 3) | 3); in TestVleXXff()
596 state_.cpu.vtype = vtype; in TestVleXXff()
[all …]
Dinterpreter.h548 Register vtype = GetCsr<CsrName::kVtype>(); in OpVector() local
549 if (static_cast<std::make_signed_t<Register>>(vtype) < 0) { in OpVector()
560 return OpVector<UInt8>(args, vtype, extra_args...); in OpVector()
562 return OpVector<UInt16>(args, vtype, extra_args...); in OpVector()
564 return OpVector<UInt32>(args, vtype, extra_args...); in OpVector()
566 return OpVector<UInt64>(args, vtype, extra_args...); in OpVector()
571 VectorRegisterGroupMultiplier vlmul = static_cast<VectorRegisterGroupMultiplier>(vtype & 0x7); in OpVector()
574 switch (static_cast<VectorSelectElementWidth>((vtype >> 3) & 0b111)) { in OpVector()
577 return OpVector<intrinsics::Float16>(args, vlmul, vtype); in OpVector()
585 vtype, in OpVector()
[all …]
/frameworks/libs/binary_translation/tests/inline_asm_tests/
Dmain_riscv64.cc332 uint64_t vtype, in RunTwoVectorArgsOneRes() argument
359 [vtype] "r"(vtype), in RunTwoVectorArgsOneRes()
409 uint64_t vtype, in RunCommonVectorFunc() argument
450 [vtype] "r"(vtype), in RunCommonVectorFunc()
534 uint64_t vtype = (vma << 7) | (vta << 6) | (vsew << 3) | vlmul; in TestVectorInstructionInternal() local
536 asm("vsetvl %0, zero, %1" : "=r"(vlmax) : "r"(vtype)); in TestVectorInstructionInternal()
566 exec_insn, &source[0], &result[0], nullptr, nullptr, scalar_src, vstart, vtype, vl); in TestVectorInstructionInternal()
746 uint64_t vtype = (vma << 7) | (vta << 6) | (vsew << 3) | vlmul; in TestVectorReductionInstruction() local
748 asm("vsetvl %0, zero, %1" : "=r"(vlmax) : "r"(vtype)); in TestVectorReductionInstruction()
764 RunTwoVectorArgsOneRes(exec_insn, &two_sources[0], &result[0], vtype, vlmax); in TestVectorReductionInstruction()
[all …]
/frameworks/rs/
Drs_compat.spec3 param RsType vtype
DrsAllocation.cpp739 RsAllocation rsi_AllocationCreateTyped(Context *rsc, RsType vtype, in rsi_AllocationCreateTyped() argument
742 …Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mipmaps… in rsi_AllocationCreateTyped()
750 RsAllocation rsi_AllocationCreateStrided(Context *rsc, RsType vtype, in rsi_AllocationCreateStrided() argument
754 …Allocation * alloc = Allocation::createAllocationStrided(rsc, static_cast<Type *>(vtype), usages, … in rsi_AllocationCreateStrided()
763 RsAllocation rsi_AllocationCreateFromBitmap(Context *rsc, RsType vtype, in rsi_AllocationCreateFromBitmap() argument
766 Type *t = static_cast<Type *>(vtype); in rsi_AllocationCreateFromBitmap()
768 RsAllocation vTexAlloc = rsi_AllocationCreateTyped(rsc, vtype, mipmaps, usages, 0); in rsi_AllocationCreateFromBitmap()
785 RsAllocation rsi_AllocationCubeCreateFromBitmap(Context *rsc, RsType vtype, in rsi_AllocationCubeCreateFromBitmap() argument
788 Type *t = static_cast<Type *>(vtype); in rsi_AllocationCubeCreateFromBitmap()
793 RsAllocation vTexAlloc = rsi_AllocationCreateTyped(rsc, vtype, mipmaps, usages, 0); in rsi_AllocationCubeCreateFromBitmap()
Drs.spec58 param RsType vtype
67 param RsType vtype
76 param RsType vtype
109 param RsType vtype
DrsApiStubs.cpp332 extern "C" RsAllocation rsAllocationCreateTyped (RsContext ctxWrapper, RsType vtype, RsAllocationMi… in rsAllocationCreateTyped() argument
335 return RS_DISPATCH(ctxWrapper, AllocationCreateTyped, vtype, mipmaps, usages, ptr); in rsAllocationCreateTyped()
338 extern "C" RsAllocation rsAllocationCreateFromBitmap (RsContext ctxWrapper, RsType vtype, RsAllocat… in rsAllocationCreateFromBitmap() argument
341 …return RS_DISPATCH(ctxWrapper, AllocationCreateFromBitmap, vtype, mipmaps, data, data_length, usag… in rsAllocationCreateFromBitmap()
344 extern "C" RsAllocation rsAllocationCubeCreateFromBitmap (RsContext ctxWrapper, RsType vtype, RsAll… in rsAllocationCubeCreateFromBitmap() argument
347 …return RS_DISPATCH(ctxWrapper, AllocationCubeCreateFromBitmap, vtype, mipmaps, data, data_length, … in rsAllocationCubeCreateFromBitmap()
350 extern "C" RsAllocation rsAllocationAdapterCreate (RsContext ctxWrapper, RsType vtype, RsAllocation… in rsAllocationAdapterCreate() argument
352 return RS_DISPATCH(ctxWrapper, AllocationAdapterCreate, vtype, baseAlloc); in rsAllocationAdapterCreate()
DrsApiStubs.h181 RsContext rsc, RsType vtype, RsAllocationMipmapControl mipmaps,
188 RsContext rsc, RsType vtype, RsAllocationMipmapControl mipmaps,
195 RsContext rsc, RsType vtype, RsAllocationMipmapControl mipmaps,
201 extern "C" RsAllocation rsAllocationAdapterCreate(RsContext rsc, RsType vtype,
DrsHidlAdaptation.h104 … static RsAllocation AllocationAdapterCreate(RsContext rsc, RsType vtype, RsAllocation baseAlloc);
DrsHidlAdaptation.cpp1078 RsAllocation RsHidlAdaptation::AllocationAdapterCreate (RsContext context, RsType vtype, RsAllocati… in AllocationAdapterCreate() argument
1080 uint64_t _vtype = (uint64_t)(uintptr_t)vtype; in AllocationAdapterCreate()
/frameworks/libs/native_bridge_support/guest_state/include/native_bridge_support/riscv64/guest_state/
Dguest_state_cpu_state.h41 uint64_t vtype; member
/frameworks/libs/binary_translation/guest_state/riscv64/include/berberis/guest_state/
Dguest_state_arch.h61 vtype, \
/frameworks/rs/cpp/
DrsDispatch.h105 typedef RsAllocation (*AllocationAdapterCreateFnPtr) (RsContext rsc, RsType vtype, RsAllocation bas…