mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 18:38:37 +00:00
add a note
llvm-svn: 44637
This commit is contained in:
parent
08ae621001
commit
011d2aab51
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user