]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: Escape semicolon in thumb1.md
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Mon, 16 Dec 2024 13:12:42 +0000 (14:12 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Wed, 18 Dec 2024 15:06:20 +0000 (16:06 +0100)
Without escaping the semicolon, the generated assembler output will not
match the expected assmbler in the test cases.

Fixes Linaro CI reported regression on r15-6166-gb7e11b499922 in
https://linaro.atlassian.net/browse/GNU-1464.

gcc/ChangeLog:

* config/arm/thumb1.md (thumb1_cbz): Escape the semicolon.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/config/arm/thumb1.md

index b4d7c6ea981f6ce7ff733179a2d35b574036bfe5..2ec7024a9ea2979c9845d52cdad921986f267353 100644 (file)
       switch (get_attr_length (insn))
        {
        case 4:  return "b%d0\t%l2";
-       case 6:  return "b%D0\t.LCB%=;b\t%l2\t%@long jump\n.LCB%=:";
-       case 8:  return "b%D0\t.LCB%=;bl\t%l2\t%@far jump\n.LCB%=:";
+       case 6:  return "b%D0\t.LCB%=\;b\t%l2\t%@long jump\n.LCB%=:";
+       case 8:  return "b%D0\t.LCB%=\;bl\t%l2\t%@far jump\n.LCB%=:";
        default: gcc_unreachable ();
        }
     }