[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8InstrInfo.td

Chris Lattner lattner at cs.uiuc.edu
Sun Dec 18 16:19:32 PST 2005



Changes in directory llvm/lib/Target/SparcV8:

SparcV8InstrInfo.td updated: 1.86 -> 1.87
---
Log message:

add bool truncstores


---
Diffs of the changes:  (+6 -0)

 SparcV8InstrInfo.td |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/lib/Target/SparcV8/SparcV8InstrInfo.td
diff -u llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.86 llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.87
--- llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.86	Sun Dec 18 17:35:05 2005
+++ llvm/lib/Target/SparcV8/SparcV8InstrInfo.td	Sun Dec 18 18:19:21 2005
@@ -721,3 +721,9 @@
 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)>;






More information about the llvm-commits mailing list