Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #14107 from sdmaclea/PR-ARM64-REMOVE-DEAD
Browse files Browse the repository at this point in the history
[Arm64] Remove LegacyBackend defines
  • Loading branch information
BruceForstall authored Sep 21, 2017
2 parents ce19697 + ae5b5c1 commit c4d7429
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
8 changes: 4 additions & 4 deletions src/jit/codegenarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ BasicBlock* CodeGen::genCallFinally(BasicBlock* block)

if ((block->bbNext == nullptr) || !BasicBlock::sameEHRegion(block, block->bbNext))
{
instGen(INS_BREAKPOINT); // This should never get executed
instGen(INS_bkpt); // This should never get executed
}
}
else
Expand Down Expand Up @@ -1849,7 +1849,7 @@ void CodeGen::genLclHeap(GenTreePtr tree)
BasicBlock* esp_check = genCreateTempLabel();
emitJumpKind jmpEqual = genJumpKindForOper(GT_EQ, CK_SIGNED);
inst_JMP(jmpEqual, esp_check);
getEmitter()->emitIns(INS_BREAKPOINT);
getEmitter()->emitIns(INS_bkpt);
genDefineTempLabel(esp_check);
}
#endif
Expand Down Expand Up @@ -1888,7 +1888,7 @@ void CodeGen::genLclHeap(GenTreePtr tree)
// If 0 bail out by returning null in targetReg
genConsumeRegAndCopy(size, targetReg);
endLabel = genCreateTempLabel();
getEmitter()->emitIns_R_R(INS_TEST, easz, targetReg, targetReg);
getEmitter()->emitIns_R_R(INS_tst, easz, targetReg, targetReg);
emitJumpKind jmpEqual = genJumpKindForOper(GT_EQ, CK_SIGNED);
inst_JMP(jmpEqual, endLabel);

Expand All @@ -1912,7 +1912,7 @@ void CodeGen::genLclHeap(GenTreePtr tree)
// Align to STACK_ALIGN
// regCnt will be the total number of bytes to localloc
inst_RV_IV(INS_add, regCnt, (STACK_ALIGN - 1), emitActualTypeSize(type));
inst_RV_IV(INS_AND, regCnt, ~(STACK_ALIGN - 1), emitActualTypeSize(type));
inst_RV_IV(INS_and, regCnt, ~(STACK_ALIGN - 1), emitActualTypeSize(type));
}

stackAdjustment = 0;
Expand Down
19 changes: 2 additions & 17 deletions src/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -10287,23 +10287,8 @@ const instruction INS_SQRT = INS_vsqrt;

#ifdef _TARGET_ARM64_

const instruction INS_SHIFT_LEFT_LOGICAL = INS_lsl;
const instruction INS_SHIFT_RIGHT_LOGICAL = INS_lsr;
const instruction INS_SHIFT_RIGHT_ARITHM = INS_asr;

const instruction INS_AND = INS_and;
const instruction INS_OR = INS_orr;
const instruction INS_XOR = INS_eor;
const instruction INS_NEG = INS_neg;
const instruction INS_TEST = INS_tst;
const instruction INS_MUL = INS_mul;
const instruction INS_MULADD = INS_madd;
const instruction INS_SIGNED_DIVIDE = INS_sdiv;
const instruction INS_UNSIGNED_DIVIDE = INS_udiv;
const instruction INS_BREAKPOINT = INS_bkpt;
const instruction INS_ADDC = INS_adc;
const instruction INS_SUBC = INS_sbc;
const instruction INS_NOT = INS_mvn;
const instruction INS_MULADD = INS_madd;
const instruction INS_BREAKPOINT = INS_bkpt;

const instruction INS_ABS = INS_fabs;
const instruction INS_ROUND = INS_frintn;
Expand Down

0 comments on commit c4d7429

Please sign in to comment.