vc4: Declare the last cpu pointer as being modified in NEON asm.
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 29 Jan 2019 17:25:17 +0000 (17:25 +0000)
committerEric Anholt <eric@anholt.net>
Wed, 30 Jan 2019 00:00:25 +0000 (16:00 -0800)
Earlier commit addressed 7 of the 8 instances available.

v2: Rebase patch back to master (by anholt)

Cc: Carsten Haitzler (Rasterman) <raster@rasterman.com>
Cc: Eric Anholt <eric@anholt.net>
Fixes: 300d3ae8b14 ("vc4: Declare the cpu pointers as being modified in NEON asm.")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/broadcom/common/v3d_cpu_tiling.h

index e10b45866098bbf14b62450b955e506351a0d25b..cb1ee7c96f45f47d70226af6ba45bf8e5baabdb4 100644 (file)
@@ -159,9 +159,8 @@ v3d_store_utile(void *gpu, uint32_t gpu_stride,
                          * d0-d7.
                          */
                         "vstm %[gpu], {q0, q1, q2, q3}\n"
-                        :
+                        : [cpu]         "+r"(cpu)
                         : [gpu]         "r"(gpu),
-                          [cpu]         "r"(cpu),
                           [cpu_stride]  "r"(cpu_stride)
                         : "q0", "q1", "q2", "q3");
                 return;