mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Modify note.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
18fec73e29
commit
d8499c9b7f
@ -1969,9 +1969,17 @@ LBB1_2:
|
|||||||
movsbl %al, %eax
|
movsbl %al, %eax
|
||||||
|
|
||||||
Better:
|
Better:
|
||||||
|
|
||||||
movl %esi, %eax
|
movl %esi, %eax
|
||||||
orl $-128, %eax
|
orl $-128, %eax
|
||||||
andl $-128, %esi
|
andl $-128, %esi
|
||||||
testb %dil, %dil
|
testb %dil, %dil
|
||||||
cmovns %esi, %eax
|
cmovns %esi, %eax
|
||||||
movsbl %al,%eax
|
movsbl %al,%eax
|
||||||
|
|
||||||
|
Best (recognize this as 'b = (b & ~0x80) | (a & 0x80)'):
|
||||||
|
|
||||||
|
andb $-128, %dil
|
||||||
|
andb $127, %sil
|
||||||
|
orb %dil, %sil
|
||||||
|
movsbl %sil, %eax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user