mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Add a entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
87ed716d21
commit
952b7d6a1e
@ -426,3 +426,20 @@ When: "movl $_dst, _ptr" is sufficient.
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
Use fisttp to do FP to integer conversion whenever it is available.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
Instead of the following for memset char*, 1, 10:
|
||||
|
||||
movl $16843009, 4(%edx)
|
||||
movl $16843009, (%edx)
|
||||
movw $257, 8(%edx)
|
||||
|
||||
It might be better to generate
|
||||
|
||||
movl $16843009, %eax
|
||||
movl %eax, 4(%edx)
|
||||
movl %eax, (%edx)
|
||||
movw al, 8(%edx)
|
||||
|
||||
when we can spare a register. It reduces code size.
|
||||
|
Loading…
Reference in New Issue
Block a user