mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17cdf7b0f4
commit
75645496fa
@ -7,3 +7,24 @@ Consider implementing a select with two conditional moves:
|
||||
cmp x, y
|
||||
moveq dst, a
|
||||
movne dst, b
|
||||
|
||||
----------------------------------------------------------
|
||||
|
||||
|
||||
%tmp1 = shl int %b, ubyte %c
|
||||
%tmp4 = add int %a, %tmp1
|
||||
|
||||
compiles to
|
||||
|
||||
add r0, r0, r1, lsl r2
|
||||
|
||||
but
|
||||
|
||||
%tmp1 = shl int %b, ubyte %c
|
||||
%tmp4 = add int %tmp1, %a
|
||||
|
||||
compiles to
|
||||
mov r1, r1, lsl r2
|
||||
add r0, r1, r0
|
||||
|
||||
----------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user