aarch64: Don't .set a symbol named st2
authorMartin Storsjö <martin@martin.st>
Mon, 16 Oct 2017 19:50:25 +0000 (22:50 +0300)
committerAnton Mitrofanov <BugMaster@narod.ru>
Sun, 24 Dec 2017 20:47:26 +0000 (23:47 +0300)
This confuses gas-preprocessor, which tries to replace actual
st2 instructions by the integer 1 or 2.

common/aarch64/mc-a.S

index 179215fb38e973dbf75639ce77b3cf0675887db4..e2f2c4928cb6cae32cbb562b3d9d31dfdcdbad70 100644 (file)
@@ -718,9 +718,9 @@ endfunc
 function mc_chroma_w\width\()_neon
 // since the element size varies, there's a different index for the 2nd store
 .if \width == 4
-    .set st2, 1
+    .set idx2, 1
 .else
-    .set st2, 2
+    .set idx2, 2
 .endif
     CHROMA_MC_START
     b.eq        2f
@@ -785,10 +785,10 @@ function mc_chroma_w\width\()_neon
     //pld         [x3]
     //pld         [x3, x4]
 
-    st1        {v16.\vsize}[0],   [x0], x2
-    st1        {v16.\vsize}[st2], [x1], x2
-    st1        {v17.\vsize}[0],   [x0], x2
-    st1        {v17.\vsize}[st2], [x1], x2
+    st1        {v16.\vsize}[0],    [x0], x2
+    st1        {v16.\vsize}[idx2], [x1], x2
+    st1        {v17.\vsize}[0],    [x0], x2
+    st1        {v17.\vsize}[idx2], [x1], x2
     b.gt        1b
 
     ret
@@ -820,10 +820,10 @@ function mc_chroma_w\width\()_neon
     //pld         [x3]
     //pld         [x3, x4]
 
-    st1        {v16.\vsize}[0],   [x0], x2
-    st1        {v16.\vsize}[st2], [x0], x2
-    st1        {v17.\vsize}[0],   [x1], x2
-    st1        {v17.\vsize}[st2], [x1], x2
+    st1        {v16.\vsize}[0],    [x0], x2
+    st1        {v16.\vsize}[idx2], [x0], x2
+    st1        {v17.\vsize}[0],    [x1], x2
+    st1        {v17.\vsize}[idx2], [x1], x2
     b.gt        3b
 
     ret
@@ -853,10 +853,10 @@ function mc_chroma_w\width\()_neon
     //pld         [x3]
     //pld         [x3, x4]
 
-    st1        {v16.\vsize}[0],   [x0], x2
-    st1        {v16.\vsize}[st2], [x0], x2
-    st1        {v17.\vsize}[0],   [x1], x2
-    st1        {v17.\vsize}[st2], [x1], x2
+    st1        {v16.\vsize}[0],    [x0], x2
+    st1        {v16.\vsize}[idx2], [x0], x2
+    st1        {v17.\vsize}[0],    [x1], x2
+    st1        {v17.\vsize}[idx2], [x1], x2
     b.gt        5b
 
     ret