projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08f8b33
)
add a note
author
Chris Lattner
<sabre@nondot.org>
Wed, 5 Dec 2007 22:58:19 +0000
(22:58 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 5 Dec 2007 22:58:19 +0000
(22:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44637
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/README.txt
patch
|
blob
|
history
diff --git
a/lib/Target/X86/README.txt
b/lib/Target/X86/README.txt
index af73658bb36215b0533468e7cd6f2dc819f66443..7705c1ba31e2473d13fa008153a924623455c6d6 100644
(file)
--- a/
lib/Target/X86/README.txt
+++ b/
lib/Target/X86/README.txt
@@
-1532,3
+1532,23
@@
_test:
ret
This should just fldl directly from the input stack slot.
+
+//===---------------------------------------------------------------------===//
+
+This code:
+int foo (int x) { return (x & 65535) | 255; }
+
+Should compile into:
+
+_foo:
+ movzwl 4(%esp), %eax
+ orb $-1, %al ;; 'orl 255' is also fine :)
+ ret
+
+instead of:
+_foo:
+ movl $255, %eax
+ orl 4(%esp), %eax
+ andl $65535, %eax
+ ret
+