On Tue, 14 Jan 2014, Janne Grunau wrote:

Clang from Xcode 5 does not support uxtl.
---
gas-preprocessor.pl | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index a0287a2..cdce3fa 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -629,6 +629,10 @@ sub handle_serialized_line {
        if ($line =~ 
/^\s*movi\s+(v[0-3]?\d\.(?:2|4|8|16)[bhsBHS])\s*,\s*(#\d+)\b\s*$/) {
          $line = "        movi $1, $2, lsl #0\n";
        }
+       # Xcode 5 misses the alias uxtl replace it with the more general ushll
+       if ($line =~ 
/^\s*uxtl(2)?\s+(v[0-3]?\d\.[248][hsdHSD])\s*,\s*(v[0-3]?\d\.(?:4|8|16)[bhsBHS])\b\s*$/)
 {
+         $line = "        ushll$1 $2, $3, #0\n";
+       }
    }

    print ASMFILE $line;
--
1.8.5.2

Ok except for the indentation

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to