/frameworks/libs/binary_translation/code_gen_lib/ |
D | code_gen_lib_riscv64_to_x86_64.cc | 122 as->Movq(as->rax, pc); in EmitDirectDispatch() 141 if (target != as->rax) { in EmitExitGeneratedCode() 142 as->Movq(as->rax, target); in EmitExitGeneratedCode() 150 as->Movq(as->rax, target); in EmitIndirectDispatch() 158 if (target == as->rax || target == as->rcx) { in EmitIndirectDispatch() 167 as->Shrq(as->rax, int8_t{24}); in EmitIndirectDispatch() 168 as->Andl(as->rax, 0xffffff); in EmitIndirectDispatch() 170 as->Movq(as->rcx, {.base = as->rcx, .index = as->rax, .scale = x86_64::Assembler::kTimesEight}); in EmitIndirectDispatch() 172 as->Movq(as->rax, target); in EmitIndirectDispatch() 173 as->Andq(as->rax, 0xffffff); in EmitIndirectDispatch() [all …]
|
D | gen_wrapper_riscv64_to_x86_64.cc | 133 as.Movq(Assembler::rax, in GenWrapGuestFunction() 136 ExtendIntArg(as, signature[i], Assembler::rax, Assembler::rax); in GenWrapGuestFunction() 137 as.Movq({.base = Assembler::rsp, .disp = kArgvOffset + argc * 8}, Assembler::rax); in GenWrapGuestFunction() 139 as.Movq(Assembler::rax, in GenWrapGuestFunction() 142 ExtendIntArg(as, signature[i], Assembler::rax, Assembler::rax); in GenWrapGuestFunction() 144 Assembler::rax); in GenWrapGuestFunction() 168 as.Movq(Assembler::rax, in GenWrapGuestFunction() 171 as.Movq({.base = Assembler::rsp, .disp = kArgvOffset + argc * 8}, Assembler::rax); in GenWrapGuestFunction() 174 as.Movq(Assembler::rax, in GenWrapGuestFunction() 178 Assembler::rax); in GenWrapGuestFunction() [all …]
|
/frameworks/libs/binary_translation/assembler/ |
D | assembler_test.cc | 392 assembler.Movq(Assembler::rax, Assembler::rdi); in AssemblerTest() 394 assembler.Movq({.base = Assembler::rsp}, Assembler::rax); in AssemblerTest() 395 assembler.Movq({.base = Assembler::rsp, .disp = 8}, Assembler::rax); in AssemblerTest() 396 assembler.Movl({.base = Assembler::rax, .disp = 16}, 239); in AssemblerTest() 440 as.Movl(Assembler::rax, 2); in LabelTest() 442 as.Addb(Assembler::rax, {end}); in LabelTest() 445 as.Addl(Assembler::rax, 12); in LabelTest() 463 as.Movl(Assembler::rax, 0xcccccccc); in CondTest1() 465 as.Setcc(Assembler::Condition::kEqual, Assembler::rax); in CondTest1() 494 as.Xorl(Assembler::rax, Assembler::rax); in CondTest2() [all …]
|
/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/ |
D | lite_translator_exec_tests.cc | 68 translator_.as()->Movq(x86_64::Assembler::rax, 33); in TEST_F() 69 translator_.SetReg(1, x86_64::Assembler::rax); in TEST_F() 83 translator_.as()->Movq(x86_64::Assembler::rax, 33); in TEST_F() 84 translator_.as()->Movq(reg, x86_64::Assembler::rax); in TEST_F()
|
D | lite_translator.cc | 90 as_.Movq(as_.rax, arg1); in Op() 96 as_.Movq(as_.rax, arg2); in Op() 104 as_.Movq(as_.rax, arg1); in Op() 330 as_.Movq(as_.rax, target); in ExitGeneratedCode() 331 EmitExitGeneratedCode(&as_, as_.rax); in ExitGeneratedCode() 340 as_.Movq(as_.rax, target); in ExitRegion() 341 EmitExitGeneratedCode(&as_, as_.rax); in ExitRegion()
|
D | inline_intrinsic_tests.cc | 40 static x86_64::Assembler::Register AllocTempReg() { return x86_64::Assembler::rax; } in AllocTempReg() 79 return x86_64::Assembler::rax; in AllocResult() 81 return std::make_tuple(x86_64::Assembler::xmm0, x86_64::Assembler::rax); in AllocResult()
|
D | lite_translator.h | 490 Assembler::rax); 495 as_.Or<uint8_t>(csr_reg, as_.rax); 547 as_.Mov<uint8_t>(Assembler::rax, arg); 548 as_.And<uint32_t>(Assembler::rax, 0b1'1111); 567 as_.Mov<uint8_t>(Assembler::rax, arg); 568 as_.And<uint32_t>(Assembler::rax, 0b1'1111);
|
D | call_intrinsic.h | 33 x86_64::Assembler::rax, 322 as.Expand<int64_t, int32_t>(result, Assembler::rax); in ForwardResults() 327 as.Mov<int64_t>(result, Assembler::rax); in ForwardResults() 345 as.Expand<int64_t, int32_t>(result0, Assembler::rax); in ForwardResults() 349 as.Mov<int64_t>(result0, Assembler::rax); in ForwardResults()
|
D | inline_intrinsic.h | 378 as_, as_.rax, std::get<arg_info.from>(input_args_)); in ProcessArgInput() 394 Mov<Type>(as_, as_.rax, std::get<arg_info.from>(input_args_)); in ProcessArgInput() 395 result_reg_ = as_.rax; in ProcessArgInput() 406 result_reg_ = as_.rax; in ProcessArgInput()
|
/frameworks/libs/binary_translation/backend/x86_64/ |
D | code_emit.cc | 144 as->Movq(as->rax, pair.second); in EmitRecoveryLabels() 158 EmitExitGeneratedCode(as, as->rax); in EmitRecoveryLabels() 171 Assembler::rax, in GetGReg() 265 as->Movq(as->rax, target_); in Emit() 281 as->Movq(as->rax, target_); in Emit() 282 EmitExitGeneratedCode(as, as->rax); in Emit() 290 as->Movq(as->rax, x86_64::GetGReg(RegAt(0))); in Emit() 313 as->Setcc(CodeEmitter::Condition::kOverflow, as->rax); in Emit() 316 as->Movb(as->rax, int8_t{0}); in Emit() 321 as->Addb(as->rax, int8_t{0x7f}); in Emit()
|
D | machine_ir_exec_test.cc | 79 as.Movq({.base = as.rbp}, as.rax); in Init()
|
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/ |
D | frontend.cc | 340 auto rax = AllocTempReg(); in Op() local 342 Gen<PseudoCopy>(rax, arg1, 8); in Op() 343 Gen<x86_64::ImulqRegRegReg>(rax, rdx, arg2, GetFlagsRegister()); in Op() 348 auto rax = AllocTempReg(); in Op() local 350 Gen<PseudoCopy>(rax, arg2, 8); in Op() 351 Gen<x86_64::MulqRegRegReg>(rax, rdx, res, GetFlagsRegister()); in Op() 357 auto rax = AllocTempReg(); in Op() local 359 Gen<PseudoCopy>(rax, arg1, 8); in Op() 360 Gen<x86_64::MulqRegRegReg>(rax, rdx, arg2, GetFlagsRegister()); in Op() 950 auto rax = AllocTempReg(); in MemoryRegionReservationSwapWithLockedOwner() local [all …]
|
/frameworks/libs/binary_translation/base/ |
D | raw_syscall_x86_64.S | 24 mov %rdi, %rax
|
/frameworks/libs/binary_translation/assembler/include/berberis/assembler/ |
D | x86_64.h | 39 static constexpr Register rax{0};
|