arch-power: Add fixed-point logical extend sign instructions
authorSandipan Das <sandipan@linux.vnet.ibm.com>
Thu, 7 Jun 2018 09:30:27 +0000 (15:00 +0530)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 24 Jan 2021 03:26:02 +0000 (03:26 +0000)
This adds the following logical instructions:
  * Extend Sign Word (extsw[.])

Change-Id: I610e84c2361b99b00ceef2170ede5b6dee8ec21b
Signed-off-by: Sandipan Das <sandipan@linux.vnet.ibm.com>
src/arch/power/insts/integer.cc
src/arch/power/isa/decoder.isa

index 4f2804f9c6bdf33573f976c44bb3bd40abff8375..b49da47e153b7e99f4de7f9b70e045a231833453 100644 (file)
@@ -294,6 +294,7 @@ IntLogicOp::generateDisassembly(
         printSecondSrc = false;
     } else if (!myMnemonic.compare("extsb") ||
                !myMnemonic.compare("extsh") ||
+               !myMnemonic.compare("extsw") ||
                !myMnemonic.compare("cntlzw")) {
         printSecondSrc = false;
     }
index 77ce3c04c3cbb828db5ff08c7658922aa1fbe81b..6575f4f54a1162c27306eff7bbf3b2c6cff5136c 100644 (file)
@@ -511,6 +511,7 @@ decode PO default Unknown::unknown() {
             412: orc({{ Ra = Rs | ~Rb; }}, true);
             954: extsb({{ Ra = Rs_sb; }}, true);
             922: extsh({{ Ra = Rs_sh; }}, true);
+            986: extsw({{ Ra = Rs_sw; }}, true);
             26: cntlzw({{ Ra = findLeadingZeros(Rs_uw); }}, true);
 
             508: cmpb({{