summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-10-27 22:43:24 +0000
committerBill Wendling <isanbard@gmail.com>2009-10-27 22:43:24 +0000
commit2974f63cb573e18ffee4afb70e34488ae3f0966a (patch)
treead4469fbbd43b49dcafa3097f354327ac8d2ecb2 /llvm
parentcd4d148040f8c6cfc9489646843609ffd35ee45b (diff)
downloadbcm5719-llvm-2974f63cb573e18ffee4afb70e34488ae3f0966a.tar.gz
bcm5719-llvm-2974f63cb573e18ffee4afb70e34488ae3f0966a.zip
Note corrected.
llvm-svn: 85332
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/X86/README.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt
index 75dde2d28aa..876bb65acdd 100644
--- a/llvm/lib/Target/X86/README.txt
+++ b/llvm/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
OpenPOWER on IntegriCloud