aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-09-22 11:36:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-09-22 11:36:17 +0000
commit75645496fa9cd73d7dd1965b055ca6b7ee7a291d (patch)
tree1d1386d26cf869ff10a0a770c32872f0c4fe383d
parent17cdf7b0f44eba413deafee16aa19a246e5488af (diff)
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30581 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/README.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Target/ARM/README.txt b/lib/Target/ARM/README.txt
index 7d612d019b..736d776fd8 100644
--- a/lib/Target/ARM/README.txt
+++ b/lib/Target/ARM/README.txt
@@ -7,3 +7,24 @@ Consider implementing a select with two conditional moves:
cmp x, y
moveq dst, a
movne dst, b
+
+----------------------------------------------------------
+
+
+%tmp1 = shl int %b, ubyte %c
+%tmp4 = add int %a, %tmp1
+
+compiles to
+
+add r0, r0, r1, lsl r2
+
+but
+
+%tmp1 = shl int %b, ubyte %c
+%tmp4 = add int %tmp1, %a
+
+compiles to
+mov r1, r1, lsl r2
+add r0, r1, r0
+
+----------------------------------------------------------