https://gcc.gnu.org/g:0a32656dc3efd67aa1ec8b6543867fc8262c2da6

commit r16-4126-g0a32656dc3efd67aa1ec8b6543867fc8262c2da6
Author: YunQiang Su <[email protected]>
Date:   Mon Sep 29 10:28:02 2025 +0800

    MIPS/testsuite: add testcase for -fpatchable-function-entry=2,1
    
    gcc/testsuite/ChangeLog:
            * gcc.target/mips/pr99217-2.c: New test.

Diff:
---
 gcc/testsuite/gcc.target/mips/pr99217-2.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gcc/testsuite/gcc.target/mips/pr99217-2.c 
b/gcc/testsuite/gcc.target/mips/pr99217-2.c
new file mode 100644
index 000000000000..c51f3f4399e4
--- /dev/null
+++ b/gcc/testsuite/gcc.target/mips/pr99217-2.c
@@ -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)
+{
+}

Reply via email to