Home
last modified time | relevance | path

Searched refs:folded_insn (Results 1 – 2 of 2) sorted by relevance

/frameworks/libs/binary_translation/backend/x86_64/
Dinsn_folding.cc77 MachineInsn* folded_insn; in NewImmInsnFromRegInsn() local
80 folded_insn = machine_ir_->NewInsn<AddqRegImm>(insn->RegAt(0), imm32, insn->RegAt(2)); in NewImmInsnFromRegInsn()
83 folded_insn = machine_ir_->NewInsn<SubqRegImm>(insn->RegAt(0), imm32, insn->RegAt(2)); in NewImmInsnFromRegInsn()
86 folded_insn = machine_ir_->NewInsn<CmpqRegImm>(insn->RegAt(0), imm32, insn->RegAt(2)); in NewImmInsnFromRegInsn()
89 folded_insn = machine_ir_->NewInsn<OrqRegImm>(insn->RegAt(0), imm32, insn->RegAt(2)); in NewImmInsnFromRegInsn()
92 folded_insn = machine_ir_->NewInsn<XorqRegImm>(insn->RegAt(0), imm32, insn->RegAt(2)); in NewImmInsnFromRegInsn()
95 folded_insn = machine_ir_->NewInsn<AndqRegImm>(insn->RegAt(0), imm32, insn->RegAt(2)); in NewImmInsnFromRegInsn()
98 folded_insn = machine_ir_->NewInsn<TestqRegImm>(insn->RegAt(0), imm32, insn->RegAt(2)); in NewImmInsnFromRegInsn()
101 folded_insn = machine_ir_->NewInsn<MovlRegImm>(insn->RegAt(0), imm32); in NewImmInsnFromRegInsn()
104 folded_insn = machine_ir_->NewInsn<AddlRegImm>(insn->RegAt(0), imm32, insn->RegAt(2)); in NewImmInsnFromRegInsn()
[all …]
Dinsn_folding_test.cc69 auto [is_folded, folded_insn] = insn_folding.TryFoldInsn(insn); in TryRegRegInsnFolding()
76 EXPECT_EQ(InsnTypeRegImm::kInfo.opcode, folded_insn->opcode()); in TryRegRegInsnFolding()
77 EXPECT_EQ(vreg2, folded_insn->RegAt(0)); in TryRegRegInsnFolding()
78 EXPECT_EQ(flags, folded_insn->RegAt(1)); in TryRegRegInsnFolding()
80 AsMachineInsnX86_64(folded_insn)->imm()); in TryRegRegInsnFolding()
116 auto [is_folded, folded_insn] = insn_folding.TryFoldInsn(insn); in TryMovInsnFolding()
119 EXPECT_EQ(InsnTypeRegImm::kInfo.opcode, folded_insn->opcode()); in TryMovInsnFolding()
120 EXPECT_EQ(vreg2, folded_insn->RegAt(0)); in TryMovInsnFolding()
125 AsMachineInsnX86_64(folded_insn)->imm()); in TryMovInsnFolding()
128 AsMachineInsnX86_64(folded_insn)->imm()); in TryMovInsnFolding()
[all …]