Added anyext, modelled as zext on X86.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 17 Dec 2005 01:47:57 +0000 (01:47 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 17 Dec 2005 01:47:57 +0000 (01:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24759 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index a244baad9c97e59cef99990a14e431485a2b818a..4c2efb70fdcf913a01f1611d15b4659ae3714bdd 100644 (file)
@@ -1932,6 +1932,11 @@ def : Pat<(zextloadi32i1 addr:$src), (MOVZX32rm8  addr:$src)>;
 // 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)
 //===----------------------------------------------------------------------===//