arch-power: Add sign-extend instructions

This adds the following instructions.
  * Extend Sign Word (extsw[.])

Change-Id: Ia15fc69de665399f1c8d52ca00d2f7670d553b48
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40919
Reviewed-by: Boris Shingarov <shingarov@labware.com>
Maintainer: Boris Shingarov <shingarov@labware.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Sandipan Das
2021-02-06 17:21:16 +05:30
parent a45afa54cb
commit 989d1da4ed
2 changed files with 2 additions and 0 deletions

View File

@@ -286,6 +286,7 @@ IntLogicOp::generateDisassembly(
printSecondSrc = false;
} else if (myMnemonic == "extsb" ||
myMnemonic == "extsh" ||
myMnemonic == "extsw" ||
myMnemonic == "cntlzw") {
printSecondSrc = false;
}

View File

@@ -579,6 +579,7 @@ decode PO default Unknown::unknown() {
}
983: StoreIndexOp::stfiwx({{ Mem = Fs_uw; }});
986: IntLogicOp::extsw({{ Ra = sext<32>(Rs); }}, true);
// These instructions are of XO form with bit 21 as the OE bit.
default: decode XO_XO {