summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitd2a07eebcd81239f7018c4b7065837d607f3a72b (patch)
tree8f89d96c4a4e52008c5463b58dd1d89172568e88 /llvm/lib
parent15bd5ea92f79a04e32e09d936739b32dfa34d7aa (diff)
downloadbcm5719-llvm-d2a07eebcd81239f7018c4b7065837d607f3a72b.tar.gz
bcm5719-llvm-d2a07eebcd81239f7018c4b7065837d607f3a72b.zip
add bool truncstores
llvm-svn: 24845
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/SparcV8/SparcV8InstrInfo.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.td b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.td
index 02e1a002032..3c9b8d43358 100644
--- a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.td
+++ b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.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)>;
OpenPOWER on IntegriCloud