OSDN Git Service

add a note
authorChris Lattner <sabre@nondot.org>
Sun, 25 Mar 2007 04:46:28 +0000 (04:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 25 Mar 2007 04:46:28 +0000 (04:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35330 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/README.txt

index 932893e..074dffc 100644 (file)
@@ -625,3 +625,16 @@ _foo:   mr r0,r3
         blr
 
 ===-------------------------------------------------------------------------===
+
+test/CodeGen/PowerPC/2007-03-24-cntlzd.ll compiles to:
+
+__ZNK4llvm5APInt17countLeadingZerosEv:
+        ld r2, 0(r3)
+        cntlzd r2, r2
+        or r2, r2, r2     <<-- silly.
+        addi r3, r2, -64
+        blr 
+
+The dead or is a 'truncate' from 64- to 32-bits.
+
+===-------------------------------------------------------------------------===