          NO_RND_AVG32 r8, r9, r6, r7, r5, r10, r12
          subs r3, r3, #1
          stmia r0, {r8-r9}
-@@ -338,7 +345,7 @@
- put_pixels8_y2_arm:
+@@ -330,7 +337,7 @@ function put_no_rnd_pixels8_x2_arm, expo
+ function put_pixels8_y2_arm, export=1
          @ void func(uint8_t *block, const uint8_t *pixels, int line_size, int h)
          @ block = word aligned, pixles = unaligned
 -        pld [r1]
 +        PLD ( pld [r1] )
          stmfd sp!, {r4-r11,lr} @ R14 is also called LR
-         adr r5, 5f
-         ands r4, r1, #3
-@@ -352,13 +359,13 @@
+         mov r3, r3, lsr #1
+         ldr r12, =0xfefefefe
+@@ -340,13 +347,13 @@ function put_pixels8_y2_arm, export=1
          add r1, r1, r2
  6:      ldmia r1, {r6-r7}
          add r1, r1, r2

         subs r3, r3, #1
         stmia r0, {r4-r5}
         add r0, r0, r2
@@ -198,7 +205,7 @@
 put_pixels8_x2_arm:
         @ void func(uint8_t *block, const uint8_t *pixels, int line_size, int h)
         @ block = word aligned, pixles = unaligned
-        pld [r1]
+        PLD ( pld [r1] )
         stmfd sp!, {r4-r10,lr} @ R14 is also called LR
         adr r5, 5f
         ands r4, r1, #3
@@ -210,7 +217,7 @@
         ldmia r1, {r4-r5, r10}
         add r1, r1, r2
         ADJ_ALIGN_DOUBLEWORD_D 1, r6, r7, r4, r5, r10

         ADJ_ALIGN_DOUBLEWORD 3, r4, r5, r6
         subs r3, r3, #1
         RND_AVG32 r10, r11, r7, r8, r4, r5, r12
@@ -428,7 +435,7 @@ function put_pixels8_y2_arm, export=1
 function put_no_rnd_pixels8_y2_arm, export=1
         @ void func(uint8_t *block, const uint8_t *pixels, int line_size, int h)
         @ block = word aligned, pixles = unaligned
-        pld [r1]
+        PLD ( pld [r1] )
         stmfd sp!, {r4-r11,lr} @ R14 is also called LR
         mov r3, r3, lsr #1
         ldr r12, =0xfefefefe
@@ -438,13 +445,13 @@ function put_no_rnd_pixels8_y2_arm, expo
         add r1, r1, r2
 6:      ldmia r1, {r6-r7}
         add r1, r1, r2
