summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZInstrInfo.td
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-05-15 15:05:29 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-05-15 15:05:29 +0000
commitddbf053a4cad58393a389f264c51923111eba3db (patch)
tree07efd34a12f337269db416df50dbcc217c42bb03 /lib/Target/SystemZ/SystemZInstrInfo.td
parente66ef733188f06f24baa8fe496abd9eab442b3b0 (diff)
downloadllvm-ddbf053a4cad58393a389f264c51923111eba3db.tar.gz
llvm-ddbf053a4cad58393a389f264c51923111eba3db.tar.bz2
llvm-ddbf053a4cad58393a389f264c51923111eba3db.tar.xz
[SystemZ] Make use of SUBTRACT HALFWORD
Thanks to Ulrich Weigand for noticing that this instruction was missing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.td')
-rw-r--r--lib/Target/SystemZ/SystemZInstrInfo.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.td b/lib/Target/SystemZ/SystemZInstrInfo.td
index fea2b73579..903fb740a4 100644
--- a/lib/Target/SystemZ/SystemZInstrInfo.td
+++ b/lib/Target/SystemZ/SystemZInstrInfo.td
@@ -478,6 +478,7 @@ let Defs = [PSW] in {
def SGR : BinaryRRE<"sgr", 0xB909, sub, GR64, GR64>;
// Subtraction of memory.
+ defm SH : BinaryRXPair<"sh", 0x4B, 0xE37B, sub, GR32, sextloadi16>;
defm S : BinaryRXPair<"s", 0x5B, 0xE35B, sub, GR32, load>;
def SGF : BinaryRXY<"sgf", 0xE319, sub, GR64, sextloadi32>;
def SG : BinaryRXY<"sg", 0xE309, sub, GR64, load>;