[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td
Evan Cheng
evan.cheng at apple.com
Fri Jan 13 13:45:30 PST 2006
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.td updated: 1.202 -> 1.203
---
Log message:
Add truncstore i1 patterns.
---
Diffs of the changes: (+5 -0)
X86InstrInfo.td | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.202 llvm/lib/Target/X86/X86InstrInfo.td:1.203
--- llvm/lib/Target/X86/X86InstrInfo.td:1.202 Thu Jan 12 16:54:21 2006
+++ llvm/lib/Target/X86/X86InstrInfo.td Fri Jan 13 15:45:19 2006
@@ -2988,6 +2988,11 @@
def : Pat<(X86subflag R32:$src1, i32immSExt8:$src2),
(SUB32ri8 R32:$src1, i32immSExt8:$src2)>;
+def : Pat<(truncstore (i8 imm:$src), addr:$dst, i1),
+ (MOV8mi addr:$dst, imm:$src)>;
+def : Pat<(truncstore R8:$src, addr:$dst, i1),
+ (MOV8mr addr:$dst, R8:$src)>;
+
// {s|z}extload bool -> {s|z}extload byte
def : Pat<(sextloadi16i1 addr:$src), (MOVSX16rm8 addr:$src)>;
def : Pat<(sextloadi32i1 addr:$src), (MOVSX32rm8 addr:$src)>;
More information about the llvm-commits
mailing list