[x264-devel] [PATCH 3/8] arm: move instructions after '.rept' to separate line

Janne Grunau janne-x264 at jannau.net
Sun Jul 20 18:48:27 CEST 2014


The gas manual states "Repeat the sequence of lines between the .rept
directive and the next .endr directive ...". GNU as seems to support
instructions on the same line as .rept anyway but the integrated
assembler in llvm trunk (to be released 3.5 in August 2014) does not.
---
 common/arm/pixel-a.S | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/common/arm/pixel-a.S b/common/arm/pixel-a.S
index 7889d46..e288bcf 100644
--- a/common/arm/pixel-a.S
+++ b/common/arm/pixel-a.S
@@ -28,10 +28,12 @@
 .section .rodata
 .align 4
 
-.rept 16 .byte 0xff
+.rept 16
+        .byte 0xff
 .endr
 mask_ff:
-.rept 16 .byte 0
+.rept 16
+        .byte 0
 .endr
 
 mask_ac4:
-- 
2.0.1



More information about the x264-devel mailing list