arm: Consistently use unified syntax for asm
authorMartin Storsjo <martin@martin.st>
Sat, 28 Jul 2018 05:02:27 +0000 (08:02 +0300)
committerMartin Storsjo <martin@martin.st>
Sat, 28 Jul 2018 08:56:49 +0000 (11:56 +0300)
The ".syntax unified" directives in a few source files aren't valid
ADS assembly directives, and they break compilation for windows,
since ads2armasm_ms.pl doesn't handle them.

Explicity add them via ads2gas.pl and ads2gas_apple.pl instead,
and tweak one instruction to be valid unified syntax.

Change-Id: I37f1709f163d11474597161fe02eb433859cb9b8

build/make/ads2gas.pl
build/make/ads2gas_apple.pl
vpx_dsp/arm/loopfilter_8_neon.asm
vpx_dsp/arm/vpx_convolve8_avg_vert_filter_type1_neon.asm
vpx_dsp/arm/vpx_convolve8_avg_vert_filter_type2_neon.asm
vpx_dsp/arm/vpx_convolve8_vert_filter_type1_neon.asm
vpx_dsp/arm/vpx_convolve8_vert_filter_type2_neon.asm

index 91609da..0bf4816 100755 (executable)
@@ -33,8 +33,8 @@ foreach my $arg (@ARGV) {
 print "@ This file was created from a .asm file\n";
 print "@  using the ads2gas.pl script.\n";
 print "\t.equ DO1STROUNDING, 0\n";
+print "\t.syntax unified\n";
 if ($thumb) {
-    print "\t.syntax unified\n";
     print "\t.thumb\n";
 }
 
index e1ae7b4..806fdd8 100755 (executable)
@@ -23,6 +23,7 @@ print "@  using the ads2gas_apple.pl script.\n\n";
 print "\t.set WIDE_REFERENCE, 0\n";
 print "\t.set ARCHITECTURE, 5\n";
 print "\t.set DO1STROUNDING, 0\n";
+print "\t.syntax unified\n";
 
 my %register_aliases;
 my %macro_aliases;
index a042d40..a81a9d1 100644 (file)
     str         lr, [sp, #16]              ; thresh1
     add         sp, #4
     pop         {r0-r1, lr}
-    add         r0, r1, lsl #3             ; s + 8 * pitch
+    add         r0, r0, r1, lsl #3         ; s + 8 * pitch
     b           vpx_lpf_vertical_8_neon
     ENDP        ; |vpx_lpf_vertical_8_dual_neon|
 
index c053427..d310a83 100644 (file)
@@ -20,7 +20,6 @@
     ARM
     REQUIRE8
     PRESERVE8
-    .syntax unified
 
     AREA  ||.text||, CODE, READONLY, ALIGN=2
 
index f415b99..c5695fb 100644 (file)
@@ -20,7 +20,6 @@
     ARM
     REQUIRE8
     PRESERVE8
-    .syntax unified
 
     AREA  ||.text||, CODE, READONLY, ALIGN=2
 
index fa3e0bb..2666d42 100644 (file)
@@ -20,7 +20,6 @@
     ARM
     REQUIRE8
     PRESERVE8
-    .syntax unified
 
     AREA  ||.text||, CODE, READONLY, ALIGN=2
 
index 94007aa..cb5d6d3 100644 (file)
@@ -20,7 +20,6 @@
     ARM
     REQUIRE8
     PRESERVE8
-    .syntax unified
 
     AREA  ||.text||, CODE, READONLY, ALIGN=2