Skip to content

Commit

Permalink
Add common pseudo-instructions to ARM enums
Browse files Browse the repository at this point in the history
In preparation to migrate the mnemonics to OMRInstOpCode.enum.
  • Loading branch information
fjeremic committed Jun 8, 2021
1 parent 782e206 commit 6b4ce58
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
32 changes: 32 additions & 0 deletions compiler/arm/codegen/OMRInstOpCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ const OMR::ARM::InstOpCode::OpCodeMetaData OMR::ARM::InstOpCode::metadata[NumOpC

const OMR::ARM::InstOpCode::TR_OpCodeBinaryEntry OMR::ARM::InstOpCode::binaryEncodings[ARMNumOpCodes] =
{
0x00000000, // assocreg
0x00000000, // bad
0x00000000, // dd
0x00000000, // fence
0x00000000, // label
0x00000000, // proc
0x00000000, // retn
0x00000000, // vgnop
0xE6000010, // bad
0x00800000, // add
0x00900000, // add_r
Expand Down Expand Up @@ -175,6 +183,30 @@ const OMR::ARM::InstOpCode::TR_OpCodeBinaryEntry OMR::ARM::InstOpCode::binaryEnc

const uint32_t OMR::ARM::InstOpCode::properties[ARMNumOpCodes] =
{
// assocreg
0,

// bad
0,

// dd
0,

// fence
0,

// label
0,

// proc
0,

// retn
0,

// vgnop
0,

// bad
0,

Expand Down
8 changes: 8 additions & 0 deletions compiler/arm/codegen/OMRInstOpCode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ namespace OMR { typedef OMR::ARM::InstOpCode InstOpCodeConnector; }
#include "compiler/codegen/OMRInstOpCode.hpp"

typedef enum {
assocreg,
bad,
dd,
fence,
label,
proc,
retn,
vgnop,
ARMOp_bad, //Illegal Opcode
ARMOp_add, // Add
ARMOp_add_r, // Add with record
Expand Down

0 comments on commit 6b4ce58

Please sign in to comment.