mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +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:
@@ -426,3 +426,20 @@ When: "movl $_dst, _ptr" is sufficient.
|
|||||||
//===---------------------------------------------------------------------===//
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
Use fisttp to do FP to integer conversion whenever it is available.
|
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.
|
||||||
|
Reference in New Issue
Block a user