projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b05350
)
Add a note
author
Chris Lattner
<sabre@nondot.org>
Tue, 30 May 2006 21:29:15 +0000
(21:29 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 30 May 2006 21:29:15 +0000
(21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28572
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/README.txt
patch
|
blob
|
history
diff --git
a/lib/Target/README.txt
b/lib/Target/README.txt
index 807768002b520e39d6787e359a6b1c11a67098c3..650eabf2d4d15b9203fb1577e47ea17d854683c0 100644
(file)
--- a/
lib/Target/README.txt
+++ b/
lib/Target/README.txt
@@
-251,3
+251,22
@@
void %test(uint* %P) {
ret void
}
+//===---------------------------------------------------------------------===//
+
+dag/inst combine "clz(x)>>5 -> x==0" for 32-bit x.
+
+Compile:
+
+int bar(int x)
+{
+ int t = __builtin_clz(x);
+ return -(t>>5);
+}
+
+to:
+
+_bar: addic r3,r3,-1
+ subfe r3,r3,r3
+ blr
+
+