Lines Matching refs:assm
50 inline MemOperand GetMemOp(LiftoffAssembler* assm, Register addr, in GetMemOp() argument
54 assm->daddu(kScratchReg, addr, offset); in GetMemOp()
58 assm->li(kScratchReg, offset_imm); in GetMemOp()
59 assm->daddu(kScratchReg, kScratchReg, addr); in GetMemOp()
61 assm->daddu(kScratchReg, kScratchReg, offset); in GetMemOp()
66 inline void Load(LiftoffAssembler* assm, LiftoffRegister dst, MemOperand src, in Load() argument
70 assm->Lw(dst.gp(), src); in Load()
75 assm->Ld(dst.gp(), src); in Load()
78 assm->Lwc1(dst.fp(), src); in Load()
81 assm->Ldc1(dst.fp(), src); in Load()
84 assm->ld_b(dst.fp().toW(), src); in Load()
91 inline void Store(LiftoffAssembler* assm, Register base, int32_t offset, in Store() argument
96 assm->Usw(src.gp(), dst); in Store()
99 assm->Usd(src.gp(), dst); in Store()
102 assm->Uswc1(src.fp(), dst, t8); in Store()
105 assm->Usdc1(src.fp(), dst, t8); in Store()
108 assm->st_b(src.fp().toW(), dst); in Store()
115 inline void push(LiftoffAssembler* assm, LiftoffRegister reg, ValueType type) { in push() argument
118 assm->daddiu(sp, sp, -kSystemPointerSize); in push()
119 assm->sw(reg.gp(), MemOperand(sp, 0)); in push()
122 assm->push(reg.gp()); in push()
125 assm->daddiu(sp, sp, -kSystemPointerSize); in push()
126 assm->swc1(reg.fp(), MemOperand(sp, 0)); in push()
129 assm->daddiu(sp, sp, -kSystemPointerSize); in push()
130 assm->Sdc1(reg.fp(), MemOperand(sp, 0)); in push()
133 assm->daddiu(sp, sp, -kSystemPointerSize * 2); in push()
134 assm->st_b(reg.fp().toW(), MemOperand(sp, 0)); in push()
142 inline void ChangeEndiannessLoad(LiftoffAssembler* assm, LiftoffRegister dst, in ChangeEndiannessLoad() argument
155 tmp = assm->GetUnusedRegister(kGpReg, pinned); in ChangeEndiannessLoad()
156 assm->emit_type_conversion(kExprI32ReinterpretF32, tmp, dst); in ChangeEndiannessLoad()
159 assm->TurboAssembler::ByteSwapUnsigned(tmp.gp(), tmp.gp(), 4); in ChangeEndiannessLoad()
163 assm->TurboAssembler::ByteSwapSigned(tmp.gp(), tmp.gp(), 4); in ChangeEndiannessLoad()
167 assm->TurboAssembler::ByteSwapSigned(tmp.gp(), tmp.gp(), 2); in ChangeEndiannessLoad()
171 assm->TurboAssembler::ByteSwapUnsigned(tmp.gp(), tmp.gp(), 2); in ChangeEndiannessLoad()
175 tmp = assm->GetUnusedRegister(kGpReg, pinned); in ChangeEndiannessLoad()
176 assm->emit_type_conversion(kExprI64ReinterpretF64, tmp, dst); in ChangeEndiannessLoad()
179 assm->TurboAssembler::ByteSwapSigned(tmp.gp(), tmp.gp(), 8); in ChangeEndiannessLoad()
188 assm->emit_type_conversion(kExprF32ReinterpretI32, dst, tmp); in ChangeEndiannessLoad()
191 assm->emit_type_conversion(kExprF64ReinterpretI64, dst, tmp); in ChangeEndiannessLoad()
199 inline void ChangeEndiannessStore(LiftoffAssembler* assm, LiftoffRegister src, in ChangeEndiannessStore() argument
210 tmp = assm->GetUnusedRegister(kGpReg, pinned); in ChangeEndiannessStore()
211 assm->emit_type_conversion(kExprI32ReinterpretF32, tmp, src); in ChangeEndiannessStore()
214 assm->TurboAssembler::ByteSwapSigned(tmp.gp(), tmp.gp(), 4); in ChangeEndiannessStore()
217 assm->TurboAssembler::ByteSwapSigned(tmp.gp(), tmp.gp(), 2); in ChangeEndiannessStore()
221 tmp = assm->GetUnusedRegister(kGpReg, pinned); in ChangeEndiannessStore()
222 assm->emit_type_conversion(kExprI64ReinterpretF64, tmp, src); in ChangeEndiannessStore()
225 assm->TurboAssembler::ByteSwapSigned(tmp.gp(), tmp.gp(), 8); in ChangeEndiannessStore()
228 assm->TurboAssembler::ByteSwapSigned(tmp.gp(), tmp.gp(), 4); in ChangeEndiannessStore()
231 assm->TurboAssembler::ByteSwapSigned(tmp.gp(), tmp.gp(), 2); in ChangeEndiannessStore()
240 assm->emit_type_conversion(kExprF32ReinterpretI32, src, tmp); in ChangeEndiannessStore()
243 assm->emit_type_conversion(kExprF64ReinterpretI64, src, tmp); in ChangeEndiannessStore()
1384 inline void EmitAnyTrue(LiftoffAssembler* assm, LiftoffRegister dst, in EmitAnyTrue() argument
1387 assm->BranchMSA(&all_false, MSA_BRANCH_V, all_zero, src.fp().toW(), in EmitAnyTrue()
1389 assm->li(dst.gp(), 0l); in EmitAnyTrue()
1390 assm->li(dst.gp(), 1); in EmitAnyTrue()
1391 assm->bind(&all_false); in EmitAnyTrue()
1394 inline void EmitAllTrue(LiftoffAssembler* assm, LiftoffRegister dst, in EmitAllTrue() argument
1397 assm->BranchMSA(&all_true, msa_branch_df, all_not_zero, src.fp().toW(), in EmitAllTrue()
1399 assm->li(dst.gp(), 1); in EmitAllTrue()
1400 assm->li(dst.gp(), 0l); in EmitAllTrue()
1401 assm->bind(&all_true); in EmitAllTrue()