diff options
| author | Maxime Meignan <meignanmaxime@hotmail.fr> | 2025-01-24 16:38:36 +0100 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2025-10-24 07:29:16 -0400 |
| commit | 8ffd2aa208552bcfef8d5436b62826d17f95ae86 (patch) | |
| tree | eda35860a613962b22d9b8a156cb6f3367269334 /arch/arm64/il.cpp | |
| parent | 2897f797ebb4afa4bd4c57b7ba0835576308bc6c (diff) | |
aarch64: implements lifting (intrinsics) for LDXP/STXP
Diffstat (limited to 'arch/arm64/il.cpp')
| -rw-r--r-- | arch/arm64/il.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/il.cpp b/arch/arm64/il.cpp index cbda172a..6b4d5d2e 100644 --- a/arch/arm64/il.cpp +++ b/arch/arm64/il.cpp @@ -2313,6 +2313,9 @@ bool GetLowLevelILForInstruction( il.AddInstruction(il.Intrinsic({ RegisterOrFlag::Register(REG_O(operand1)) }, ARM64_INTRIN_LDXRH, { ILREG_O(operand2) })); break; // We don't have a way to specify intrinsic register size, so we explicitly embed the size in the intrinsic name. + case ARM64_LDXP: + il.AddInstruction(il.Intrinsic({ RegisterOrFlag::Register(REG_O(operand1)), RegisterOrFlag::Register(REG_O(operand2)) }, ARM64_INTRIN_LDXP, { ILREG_O(operand3) })); + break; case ARM64_LDAXR: il.AddInstruction(il.Intrinsic({ RegisterOrFlag::Register(REG_O(operand1)) }, ARM64_INTRIN_LDAXR, { ILREG_O(operand2) })); break; @@ -2331,6 +2334,9 @@ bool GetLowLevelILForInstruction( case ARM64_STXRH: il.AddInstruction(il.Intrinsic({ RegisterOrFlag::Register(REG_O(operand1)) }, ARM64_INTRIN_STXRH, { ILREG_O(operand2), ILREG_O(operand3) })); break; + case ARM64_STXP: + il.AddInstruction(il.Intrinsic({ RegisterOrFlag::Register(REG_O(operand1)) }, ARM64_INTRIN_STXP, { ILREG_O(operand2), ILREG_O(operand3), ILREG_O(operand4) })); + break; case ARM64_STLXR: il.AddInstruction(il.Intrinsic({ RegisterOrFlag::Register(REG_O(operand1)) }, ARM64_INTRIN_STLXR, { ILREG_O(operand2), ILREG_O(operand3) })); break; |
