Add a note
authorChris Lattner <sabre@nondot.org>
Sun, 21 May 2006 03:57:07 +0000 (03:57 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 May 2006 03:57:07 +0000 (03:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28424 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/README.txt

index 24fb24d3867bbef8334052d83be17976e08aae23..807768002b520e39d6787e359a6b1c11a67098c3 100644 (file)
@@ -239,3 +239,15 @@ ulong %bar() {
 it should be extended to do so.
 
 //===---------------------------------------------------------------------===//
+
+Turn this into a single byte store with no load (the other 3 bytes are
+unmodified):
+
+void %test(uint* %P) {
+       %tmp = load uint* %P
+        %tmp14 = or uint %tmp, 3305111552
+        %tmp15 = and uint %tmp14, 3321888767
+        store uint %tmp15, uint* %P
+        ret void
+}
+