[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8InstrInfo.td
Chris Lattner
lattner at cs.uiuc.edu
Sun Dec 18 15:18:49 PST 2005
Changes in directory llvm/lib/Target/SparcV8:
SparcV8InstrInfo.td updated: 1.84 -> 1.85
---
Log message:
add support for integer extloads
---
Diffs of the changes: (+9 -0)
SparcV8InstrInfo.td | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/lib/Target/SparcV8/SparcV8InstrInfo.td
diff -u llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.84 llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.85
--- llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.84 Sun Dec 18 17:10:57 2005
+++ llvm/lib/Target/SparcV8/SparcV8InstrInfo.td Sun Dec 18 17:18:37 2005
@@ -713,3 +713,12 @@
// Return of a value, which has an input flag.
def : Pat<(retflag ICC/*HACK*/), (RETL)>;
+
+// Map integer extload's to zextloads.
+// Handling 1 bit extload
+def : Pat<(i32 (extload ADDRrr:$src, i1)), (LDUBrr ADDRrr:$src)>;
+def : Pat<(i32 (extload ADDRri:$src, i1)), (LDUBri ADDRri:$src)>;
+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)>;
More information about the llvm-commits
mailing list