diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-05-30 08:43:27 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-05-30 08:43:27 +0000 |
commit | cf7895ff8b507fea731ff8fd1d68cd6a06b6165b (patch) | |
tree | 5b5d6a7e4aa32c3f29faba0ed5f74eac1ae9329c /lib/Target | |
parent | 7a0370f66ab5739f42ffe822f33494e0de9b182b (diff) | |
download | external_llvm-cf7895ff8b507fea731ff8fd1d68cd6a06b6165b.zip external_llvm-cf7895ff8b507fea731ff8fd1d68cd6a06b6165b.tar.gz external_llvm-cf7895ff8b507fea731ff8fd1d68cd6a06b6165b.tar.bz2 |
(i64 (zext (srl GR32 8))) -> movzbl AH is not safe since srl 8 only clear the top 8 bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86Instr64bit.td | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Target/X86/X86Instr64bit.td b/lib/Target/X86/X86Instr64bit.td index f58ba8d..0babaa4 100644 --- a/lib/Target/X86/X86Instr64bit.td +++ b/lib/Target/X86/X86Instr64bit.td @@ -1607,13 +1607,6 @@ def : Pat<(and (srl_su GR32:$src, (i8 8)), (i32 255)), (EXTRACT_SUBREG (COPY_TO_REGCLASS GR32:$src, GR32_ABCD), x86_subreg_8bit_hi))>, Requires<[In64BitMode]>; -def : Pat<(i64 (zext (srl_su GR32:$src, (i8 8)))), - (SUBREG_TO_REG - (i64 0), - (MOVZX32_NOREXrr8 - (EXTRACT_SUBREG (COPY_TO_REGCLASS GR32:$src, GR32_ABCD), - x86_subreg_8bit_hi)), - x86_subreg_32bit)>; def : Pat<(srl_su GR16:$src, (i8 8)), (EXTRACT_SUBREG (MOVZX32_NOREXrr8 |