add a note

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-12-05 22:58:19 +00:00
parent 08f8b33e2c
commit 7d13015e32

View File

@ -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