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:
Andrew Lenharth 2006-09-20 14:48:00 +00:00
parent 0b78f3e4b4
commit 886f98e6f9

View File

@ -1,6 +1,19 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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