Searched refs:vlmax (Results 1 – 4 of 4) sorted by relevance
/frameworks/libs/binary_translation/intrinsics/riscv64/ |
D | vector_intrinsics.cc | 45 inline uint64_t AvlToVl(uint64_t avl, uint64_t vlmax) { in AvlToVl() argument 46 if (avl <= vlmax) { in AvlToVl() 48 } else if (avl >= 2 * vlmax) { in AvlToVl() 49 return vlmax; in AvlToVl() 62 uint64_t vlmax = VtypeToVlMax(vtype); in Vsetvl() local 63 if (vlmax == 0) { in Vsetvl() 68 return {AvlToVl(avl, vlmax), vtype & kVtypeNoVill}; in Vsetvl() 72 uint64_t vlmax = VtypeToVlMax(vtype); in Vsetvli() local 73 if (vlmax == 0) { in Vsetvli() 78 return {AvlToVl(avl, vlmax), vtype}; in Vsetvli()
|
/frameworks/libs/binary_translation/tests/inline_asm_tests/ |
D | main_riscv64.cc | 333 uint64_t vlmax) { in RunTwoVectorArgsOneRes() argument 391 EXPECT_EQ(vl, vlmax); in RunTwoVectorArgsOneRes() 535 uint64_t vlmax = 0; in TestVectorInstructionInternal() local 536 asm("vsetvl %0, zero, %1" : "=r"(vlmax) : "r"(vtype)); in TestVectorInstructionInternal() 538 if (vlmax == 0) { in TestVectorInstructionInternal() 553 vstart = vlmax / 8; in TestVectorInstructionInternal() 554 vl = (vlmax * 5) / 8; in TestVectorInstructionInternal() 557 vl = vlmax; in TestVectorInstructionInternal() 747 uint64_t vlmax = 0; in TestVectorReductionInstruction() local 748 asm("vsetvl %0, zero, %1" : "=r"(vlmax) : "r"(vtype)); in TestVectorReductionInstruction() [all …]
|
/frameworks/libs/binary_translation/interpreter/riscv64/ |
D | interpreter_test.cc | 593 auto [vlmax, vtype] = intrinsics::Vsetvl(~0ULL, (vsew << 3) | 3); in TestVleXXff() 595 state_.cpu.vl = vlmax; in TestVleXXff() 640 auto [vlmax, vtype] = in TestVleXX() 642 if (vlmax == 0) { in TestVleXX() 647 state_.cpu.vstart = vlmax / 8; in TestVleXX() 648 state_.cpu.vl = (vlmax * 5) / 8; in TestVleXX() 651 state_.cpu.vl = vlmax; in TestVleXX() 756 auto [vlmax, vtype] = intrinsics::Vsetvl(~0ULL, (vma << 7) | (vsew << 3) | vlmul); in TestVseXX() 757 if (vlmax == 0) { in TestVseXX() 762 state_.cpu.vstart = vlmax / 8; in TestVseXX() [all …]
|
D | interpreter.h | 1222 constexpr size_t vlmax = GetVlmax<ElementType, vlmul>(); in OpVectorGather() local 1235 alignas(alignof(SIMD128Register)) ElementType values[vlmax]; in OpVectorGather() 1248 if (src_element_index < vlmax) { in OpVectorGather() 2144 constexpr size_t vlmax = GetVlmax<ElementType, vlmul>(); in OpVector() local 2145 alignas(alignof(SIMD128Register)) ElementType indexes[vlmax]; in OpVector()
|