diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-25 09:45:48 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-25 09:45:48 +0000 |
commit | 6e16ee56343e0dee5f4ed6e17060199b77ad7ce5 (patch) | |
tree | 12c28bf82c2e1251c4b2c0378684bb3d4fe0b9b3 /lib/Target/X86/X86InstrInfo.td | |
parent | c60bd97b94261366800c2eb57e95ddd44092e6f8 (diff) | |
download | external_llvm-6e16ee56343e0dee5f4ed6e17060199b77ad7ce5.zip external_llvm-6e16ee56343e0dee5f4ed6e17060199b77ad7ce5.tar.gz external_llvm-6e16ee56343e0dee5f4ed6e17060199b77ad7ce5.tar.bz2 |
Added missing (any_extend (load ...)) patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.td')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index b895eb2..7dcdbd8 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -2362,6 +2362,9 @@ def : Pat<(extloadi8i1 addr:$src), (MOV8rm addr:$src)>; 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)>; +def : Pat<(i16 (anyext (loadi8 addr:$src))), (MOVZX16rm8 addr:$src)>; +def : Pat<(i32 (anyext (loadi8 addr:$src))), (MOVZX32rm8 addr:$src)>; +def : Pat<(i32 (anyext (loadi16 addr:$src))), (MOVZX32rm16 addr:$src)>; //===----------------------------------------------------------------------===// // Some peepholes |