mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
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:
parent
08f8b33e2c
commit
7d13015e32
@ -1532,3 +1532,23 @@ _test:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
This should just fldl directly from the input stack slot.
|
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