clarify with test case
authorAndrew Lenharth <andrewl@lenharth.org>
Wed, 20 Sep 2006 14:48:00 +0000 (14:48 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Wed, 20 Sep 2006 14:48:00 +0000 (14:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30531 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/README.txt

index 22755192969685890d510ea1dff2470d04e0249b..ed5424726a7c8fb459bbae342fd7d9a6e9d6cb71 100644 (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