ref: 66f58e8357dd3ecdbb90330e49f56c62efed12c0
parent: 7cd175d09729c676ed6d2b954e9d3216d40b81e4
author: Martin Storsjö <[email protected]>
date: Wed Apr 23 07:34:51 EDT 2014
Add macros for the non-standard mov.16b/mov.8b/ext.16b/ext.8b This fixes building with gnu binutils, which don't support this nonstandard form of the instructions. Once Apple's tools support the proper standard form of the instructions, the code should be updated to use that everywhere instead, and these macros should be removed.
--- a/codec/common/arm64/arm_arch64_common_macro.S
+++ b/codec/common/arm64/arm_arch64_common_macro.S
@@ -58,4 +58,20 @@
ret
.endfunc
.endm
+
+.macro mov.16b arg0, arg1
+ mov \arg0\().16b, \arg1\().16b
+.endm
+
+.macro mov.8b arg0, arg1
+ mov \arg0\().8b, \arg1\().8b
+.endm
+
+.macro ext.16b arg0, arg1, arg2, arg3
+ ext \arg0\().16b, \arg1\().16b, \arg2\().16b, \arg3
+.endm
+
+.macro ext.8b arg0, arg1, arg2, arg3
+ ext \arg0\().8b, \arg1\().8b, \arg2\().8b, \arg3
+.endm
#endif