Add support for emitting ARM file attributes.
[oota-llvm.git] / lib / Target / ARM / README.txt
index c31f22766af85908c639ac20888c6fc3470556fd..9fc3fb92cb2c1c4a7a7fc5062d1cfe5c590a8885 100644 (file)
@@ -645,13 +645,13 @@ void foo(unsigned char *a, unsigned char *b, int *c) {
 
 currently llvm-gcc generates something like this (nice branchless code I'd say):
 
-       ldrb    r0, [r0]
      ldrb    r1, [r1]
      orr     r0, r1, r0
      tst     r0, #255
      moveq   r0, #0
      streq   r0, [r2]
      bx      lr
+       ldrb    r0, [r0]
      ldrb    r1, [r1]
      orr     r0, r1, r0
      tst     r0, #255
      moveq   r0, #0
      streq   r0, [r2]
      bx      lr
 
 Note that both "tst" and "moveq" are redundant.