[llvm-commits] CVS: llvm/lib/Target/ARM/README.txt
Rafael Espindola
rafael.espindola at gmail.com
Fri Sep 22 04:36:31 PDT 2006
Changes in directory llvm/lib/Target/ARM:
README.txt updated: 1.1 -> 1.2
---
Log message:
add a note
---
Diffs of the changes: (+21 -0)
README.txt | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+)
Index: llvm/lib/Target/ARM/README.txt
diff -u llvm/lib/Target/ARM/README.txt:1.1 llvm/lib/Target/ARM/README.txt:1.2
--- llvm/lib/Target/ARM/README.txt:1.1 Tue Aug 22 07:22:46 2006
+++ llvm/lib/Target/ARM/README.txt Fri Sep 22 06:36:17 2006
@@ -7,3 +7,24 @@
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
+
+----------------------------------------------------------
More information about the llvm-commits
mailing list