From: YunQiang Su Date: Mon, 29 Sep 2025 02:28:02 +0000 (+0800) Subject: MIPS/testsuite: add testcase for -fpatchable-function-entry=2,1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a32656dc3efd67aa1ec8b6543867fc8262c2da6;p=thirdparty%2Fgcc.git MIPS/testsuite: add testcase for -fpatchable-function-entry=2,1 gcc/testsuite/ChangeLog: * gcc.target/mips/pr99217-2.c: New test. --- 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 00000000000..c51f3f4399e --- /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) +{ +}