diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-17 20:42:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-17 20:42:55 +0000 |
commit | d30a63063617d3ef6907ed4a5a2bbf9fa22b7d7c (patch) | |
tree | 91e2c11c406492504eeeac7bd4374e771790bc66 /lib/Target/Sparc | |
parent | 0b218434cc94c47e40af9b544676d48d751e2d52 (diff) |
Add store patterns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.td | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index bc137017c0..ea49adbf59 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -175,13 +175,16 @@ def LDDFri : F3_2<3, 0b100011, // Section B.4 - Store Integer Instructions, p. 95 def STBri : F3_2<3, 0b000101, (ops MEMri:$addr, IntRegs:$src), - "stb $src, [$addr]", []>; + "stb $src, [$addr]", + [(truncstore IntRegs:$src, ADDRri:$addr, i8)]>; def STHri : F3_2<3, 0b000110, (ops MEMri:$addr, IntRegs:$src), - "sth $src, [$addr]", []>; + "sth $src, [$addr]", + [(truncstore IntRegs:$src, ADDRri:$addr, i16)]>; def STri : F3_2<3, 0b000100, (ops MEMri:$addr, IntRegs:$src), - "st $src, [$addr]", []>; + "st $src, [$addr]", + [(store IntRegs:$src, ADDRri:$addr)]>; def STDri : F3_2<3, 0b000111, (ops MEMri:$addr, IntRegs:$src), "std $src, [$addr]", []>; |