diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-10-27 22:43:24 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-10-27 22:43:24 +0000 |
commit | de020736c02e66ae010ae5504782141002c3a5c2 (patch) | |
tree | d254242f4625a33aea3a0831536561ff2b485f93 /lib/Target/X86/README.txt | |
parent | d8499c9b7fae7c5afbb81dc7e7cf957abbafdb54 (diff) | |
download | external_llvm-de020736c02e66ae010ae5504782141002c3a5c2.zip external_llvm-de020736c02e66ae010ae5504782141002c3a5c2.tar.gz external_llvm-de020736c02e66ae010ae5504782141002c3a5c2.tar.bz2 |
Note corrected.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/README.txt')
-rw-r--r-- | lib/Target/X86/README.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index 75dde2d..876bb65 100644 --- a/lib/Target/X86/README.txt +++ b/lib/Target/X86/README.txt @@ -1955,12 +1955,13 @@ information to add the "lock" prefix. //===---------------------------------------------------------------------===// -int func(int a, int b) { if (a & 0x80) b |= 0x80; else b &= 0x80; return b; } +int func(int a, int b) { if (a & 0x80) b |= 0x80; else b &= ~0x80; return b; } Current: + movb %sil, %al - andb $-128, %sil + andb $127, %sil orb $-128, %al testb %dil, %dil js LBB1_2 @@ -1968,11 +1969,12 @@ Current: LBB1_2: movsbl %al, %eax + Better: movl %esi, %eax orl $-128, %eax - andl $-128, %esi + andl $127, %esi testb %dil, %dil cmovns %esi, %eax movsbl %al,%eax |