]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
MIPS/testsuite: add testcase for -fpatchable-function-entry=2,1
authorYunQiang Su <yunqiang@isrc.iscas.ac.cn>
Mon, 29 Sep 2025 02:28:02 +0000 (10:28 +0800)
committerYunQiang Su <yunqiang@isrc.iscas.ac.cn>
Mon, 29 Sep 2025 02:28:02 +0000 (10:28 +0800)
gcc/testsuite/ChangeLog:
* gcc.target/mips/pr99217-2.c: New test.

gcc/testsuite/gcc.target/mips/pr99217-2.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/mips/pr99217-2.c b/gcc/testsuite/gcc.target/mips/pr99217-2.c
new file mode 100644 (file)
index 0000000..c51f3f4
--- /dev/null
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-additional-options "-fpatchable-function-entry=2,1" } */
+/* { dg-final { scan-assembler "foo:\n\t.set\tnoreorder\n\tnop\n\t.set\treorder" } } */
+/* { dg-final { scan-assembler ".*.LPFE0:\n\t.set\tnoreorder\n\tnop\n\t.set\treorder\n\t.ent\tfoo\n" } } */
+
+/* Test the placement of the .LPFE0 label.  */
+
+void
+foo (void)
+{
+}