Skip to content

Commit

Permalink
Merge pull request #3291 from knn-k/aarch64instr15
Browse files Browse the repository at this point in the history
AArch64: Add instructions for FP mov
  • Loading branch information
0xdaryl authored Dec 14, 2018
2 parents 5522601 + f051a9d commit 7d3f72f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions compiler/aarch64/codegen/ARM64Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ static const char *opCodeToNameMap[] =
"rev16w",
"rev16x",
"rev32",
"fmovs",
"fmovd",
"fmov_wtos",
"fmov_xtod",
"proc",
Expand Down
3 changes: 2 additions & 1 deletion compiler/aarch64/codegen/OMRInstOpCodeEnum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,10 @@
rev16x, /* 0x5AC00400 REV16 */
rev32, /* 0xDAC00800 REV32 */
/* VFP instructions */
fmovs, /* 0x1E204000 FMOV */
fmovd, /* 0x1E604000 FMOV */
fmov_wtos, /* 0x1E270000 FMOV */
fmov_xtod, /* 0x9E670000 FMOV */

/* Internal OpCodes */
proc, // Entry to the method
fence, // Fence
Expand Down
2 changes: 1 addition & 1 deletion compiler/aarch64/codegen/OMRMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ static void registerCopy(TR::Instruction *precedingInstruction,
generateTrg1Src2Instruction(cg, TR::InstOpCode::orrx, node, targetReg, zeroReg, sourceReg, precedingInstruction); /* mov (register) */
break;
case TR_FPR:
TR_ASSERT(false, "Not implemented yet.");
generateTrg1Src1Instruction(cg, TR::InstOpCode::fmovd, node, targetReg, sourceReg, precedingInstruction);
break;
default:
TR_ASSERT(false, "Unsupported RegisterKind.");
Expand Down
2 changes: 2 additions & 0 deletions compiler/aarch64/codegen/OpBinary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ const OMR::ARM64::InstOpCode::OpCodeBinaryEntry OMR::ARM64::InstOpCode::binaryEn
0x5AC00400, /* REV16 rev16x */
0xDAC00800, /* REV32 rev32 */
/* VFP instructions */
0x1E204000, /* FMOV fmovs */
0x1E604000, /* FMOV fmovd */
0x1E270000, /* FMOV fmov_wtos */
0x9E670000, /* FMOV fmov_xtod */
};

0 comments on commit 7d3f72f

Please sign in to comment.