[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td
Evan Cheng
evan.cheng at apple.com
Fri Dec 16 17:48:09 PST 2005
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.td updated: 1.170 -> 1.171
---
Log message:
Added anyext, modelled as zext on X86.
---
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.170 llvm/lib/Target/X86/X86InstrInfo.td:1.171
--- llvm/lib/Target/X86/X86InstrInfo.td:1.170 Fri Dec 16 19:24:02 2005
+++ llvm/lib/Target/X86/X86InstrInfo.td Fri Dec 16 19:47:57 2005
@@ -1932,6 +1932,11 @@
// Handling 1 bit extload
def : Pat<(extloadi8i1 addr:$src), (MOV8rm addr:$src)>;
+// Modeling anyext as zext
+def : Pat<(i16 (anyext R8 :$src)), (MOVZX16rr8 R8 :$src)>;
+def : Pat<(i32 (anyext R8 :$src)), (MOVZX32rr8 R8 :$src)>;
+def : Pat<(i32 (anyext R16:$src)), (MOVZX32rr16 R16:$src)>;
+
//===----------------------------------------------------------------------===//
// XMM Floating point support (requires SSE2)
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list