Module: gas-preprocessor
Branch: master
Commit: c80aaa608fb44e1f4d8a2a4eba26d9e6b042a34e

Author:    Martin Storsjo <mar...@martin.st>
Committer: Martin Storsjo <mar...@martin.st>
Date:      Thu Dec  7 00:04:28 2017 +0200

Don't skip prfum instructions by default for armasm64

The version of armasm64 in Visual Studio 2017 15.5 can assemble
these just fine.

Also complete an incomplete sentence in the comment.

---

 gas-preprocessor.pl | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 9ff47a9..c689571 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -1020,10 +1020,13 @@ sub handle_serialized_line {
             # Convert "cset w0, lo" into "csetlo w0"
             $line =~ s/(cset)\s+([xw]\w+)\s*,\s*($arm_cond_codes)/\1\3 \2/;
 
-            # Strip out prfum; armasm64 fails to assemble any
-            # variant/combination of prfum tested so far, but it can be
-            # left out without any
-            $line =~ s/prfum.*\]//;
+            if ($ENV{GASPP_ARMASM64_SKIP_PRFUM}) {
+                # Strip out prfum; armasm64 (VS < 15.5) fails to assemble any
+                # variant/combination of prfum tested so far, but since it is
+                # a prefetch instruction it can be skipped without changing
+                # results.
+                $line =~ s/prfum.*\]//;
+            }
 
             # Convert "ldrb w0, [x0, #-1]" into "ldurb w0, [x0, #-1]".
             # Don't do this for forms with writeback though.

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to