diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:45:00 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:45:00 +0000 |
commit | 961bb6f43026964004c0b811bd19fdf1735db5bc (patch) | |
tree | 90d961ce6e17ce7a240badd892b1b0b2d0d47d34 /lib/Target/SystemZ/SystemZInstrInfo.td | |
parent | dc28955b3f48116fe76ef98c778aa64e51ef62db (diff) | |
download | llvm-961bb6f43026964004c0b811bd19fdf1735db5bc.tar.gz llvm-961bb6f43026964004c0b811bd19fdf1735db5bc.tar.bz2 llvm-961bb6f43026964004c0b811bd19fdf1735db5bc.tar.xz |
Add stores and truncstores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.td')
-rw-r--r-- | lib/Target/SystemZ/SystemZInstrInfo.td | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.td b/lib/Target/SystemZ/SystemZInstrInfo.td index 8bf4b4fe58..5ba96f6dee 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.td +++ b/lib/Target/SystemZ/SystemZInstrInfo.td @@ -219,6 +219,11 @@ def MOV64rm : Pseudo<(outs GR64:$dst), (ins rriaddr:$src), } +def MOV64mr : Pseudo<(outs), (ins rriaddr:$dst, GR64:$src), + "stg\t{$src, $dst}", + [(store GR64:$src, rriaddr:$dst)]>; + +// extloads def MOVSX64rm8 : Pseudo<(outs GR64:$dst), (ins rriaddr:$src), "lgb\t{$dst, $src}", [(set GR64:$dst, (sextloadi64i8 rriaddr:$src))]>; @@ -239,6 +244,27 @@ def MOVZX64rm32 : Pseudo<(outs GR64:$dst), (ins rriaddr:$src), "llgf\t{$dst, $src}", [(set GR64:$dst, (zextloadi64i32 rriaddr:$src))]>; +// truncstores +// FIXME: Implement 12-bit displacement stuff someday +def MOV32m8r : Pseudo<(outs), (ins rriaddr:$dst, GR32:$src), + "stcy\t{$src, $dst}", + [(truncstorei8 GR32:$src, rriaddr:$dst)]>; + +def MOV32m16r : Pseudo<(outs), (ins rriaddr:$dst, GR32:$src), + "sthy\t{$src, $dst}", + [(truncstorei16 GR32:$src, rriaddr:$dst)]>; + +def MOV64m8r : Pseudo<(outs), (ins rriaddr:$dst, GR64:$src), + "stcy\t{$src, $dst}", + [(truncstorei8 GR64:$src, rriaddr:$dst)]>; + +def MOV64m16r : Pseudo<(outs), (ins rriaddr:$dst, GR64:$src), + "sthy\t{$src, $dst}", + [(truncstorei16 GR64:$src, rriaddr:$dst)]>; + +def MOV64m32r : Pseudo<(outs), (ins rriaddr:$dst, GR64:$src), + "sty\t{$src, $dst}", + [(truncstorei32 GR64:$src, rriaddr:$dst)]>; //===----------------------------------------------------------------------===// // Arithmetic Instructions |