aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-19 00:19:21 +0000
committerChris Lattner <sabre@nondot.org>2005-12-19 00:19:21 +0000
commitf53d0bfbfd501d752fe313725083d1f295e30ba7 (patch)
tree330e5d00d08bb56c6b03fa8f9087c3c4bc054817 /lib/Target/Sparc
parent8ba0423660fd8d5c9397bb6142ee56f5aec73716 (diff)
downloadexternal_llvm-f53d0bfbfd501d752fe313725083d1f295e30ba7.zip
external_llvm-f53d0bfbfd501d752fe313725083d1f295e30ba7.tar.gz
external_llvm-f53d0bfbfd501d752fe313725083d1f295e30ba7.tar.bz2
add bool truncstores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r--lib/Target/Sparc/SparcInstrInfo.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td
index 02e1a00..3c9b8d4 100644
--- a/lib/Target/Sparc/SparcInstrInfo.td
+++ b/lib/Target/Sparc/SparcInstrInfo.td
@@ -721,3 +721,9 @@ def : Pat<(i32 (extload ADDRrr:$src, i8)), (LDUBrr ADDRrr:$src)>;
def : Pat<(i32 (extload ADDRri:$src, i8)), (LDUBri ADDRri:$src)>;
def : Pat<(i32 (extload ADDRrr:$src, i16)), (LDUHrr ADDRrr:$src)>;
def : Pat<(i32 (extload ADDRri:$src, i16)), (LDUHri ADDRri:$src)>;
+
+// truncstore bool -> truncstore byte.
+def : Pat<(truncstore IntRegs:$src, ADDRrr:$addr, i1),
+ (STBrr IntRegs:$src, ADDRrr:$addr)>;
+def : Pat<(truncstore IntRegs:$src, ADDRri:$addr, i1),
+ (STBri IntRegs:$src, ADDRri:$addr)>;