mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 05:31:06 +00:00
clarify with test case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b78f3e4b4
commit
886f98e6f9
@ -1,6 +1,19 @@
|
|||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
Fix cmovs with a constant on the wrong side
|
Fix cmovs with a constant on the wrong side
|
||||||
|
|
||||||
|
aka:
|
||||||
|
lda $0,10($31)
|
||||||
|
cmovlt $17,$0,$16
|
||||||
|
|
||||||
|
is bad for:
|
||||||
|
|
||||||
|
long %cmov_lt2(long %a, long %c) {
|
||||||
|
entry:
|
||||||
|
%tmp.1 = setlt long %c, 0
|
||||||
|
%retval = select bool %tmp.1, long 10, long %a
|
||||||
|
ret long %retval
|
||||||
|
}
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
Fix Ordered/Unordered FP stuff
|
Fix Ordered/Unordered FP stuff
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user