]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[RISCV][committed] Remove spurious newline in ztso sequence
authorJeff Law <jlaw@ventanamicro.com>
Mon, 21 Aug 2023 17:20:28 +0000 (11:20 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 21 Aug 2023 17:20:28 +0000 (11:20 -0600)
amo-table-ztso-load-3 the coordination branch after merging up the Ztso changes
due to a spurious newline in the output causing scan-function-body to fail.
There's probably an over-zealous .* or similar regexp in the framework.  I
didn't see it in a quick scan, but could have easily missed it.

Regardless, fixing the extraneous newline is easy :-)

gcc/
* config/riscv/sync-ztso.md (atomic_load_ztso<mode>): Avoid extraenous
newline.

gcc/config/riscv/sync-ztso.md

index 91c2a48c069f7dd2d632371abb26cc2919e65665..ed94471b96be203bb74b827a0fa5899ee920ddbe 100644 (file)
@@ -52,7 +52,7 @@
 
     if (model == MEMMODEL_SEQ_CST)
       return "fence\trw,rw\;"
-            "l<amo>\t%0,%1\;";
+            "l<amo>\t%0,%1";
     else
       return "l<amo>\t%0,%1";
   }
@@ -77,4 +77,4 @@
       return "s<amo>\t%z1,%0";
   }
   [(set_attr "type" "atomic")
-   (set (attr "length") (const_int 8))])
\ No newline at end of file
+   (set (attr "length") (const_int 8))])