[llvm-commits] CVS: llvm/lib/Target/X86/README.txt

Chris Lattner sabre at nondot.org
Tue Apr 10 22:34:17 PDT 2007



Changes in directory llvm/lib/Target/X86:

README.txt updated: 1.163 -> 1.164
---
Log message:

done


---
Diffs of the changes:  (+0 -28)

 README.txt |   28 ----------------------------
 1 files changed, 28 deletions(-)


Index: llvm/lib/Target/X86/README.txt
diff -u llvm/lib/Target/X86/README.txt:1.163 llvm/lib/Target/X86/README.txt:1.164
--- llvm/lib/Target/X86/README.txt:1.163	Tue Apr 10 16:14:01 2007
+++ llvm/lib/Target/X86/README.txt	Wed Apr 11 00:34:00 2007
@@ -1049,31 +1049,3 @@
 
 //===---------------------------------------------------------------------===//
 
-Consider:
-
-int isnegative(unsigned int X) {
-   return !(X < 2147483648U);
-}
-
-We current compile this to:
-
-define i32 @isnegative(i32 %X) {
-        icmp slt i32 %X, 0              ; <i1>:0 [#uses=1]
-        %retval = zext i1 %0 to i32             ; <i32> [#uses=1]
-        ret i32 %retval
-}
-
-and:
-
-_isnegative:
-        cmpl $0, 4(%esp)
-        sets %al
-        movzbl %al, %eax
-        ret
-
-We should produce:
-
-	movl	4(%esp), %eax
-	shrl	$31, %eax
-        ret
-






More information about the llvm-commits mailing list