Fix scan-assembler patterns in i386/naked-{1,2}.c

2017-11-02  Tom de Vries  <tom@codesourcery.com>

	PR testsuite/82415
	* gcc.target/i386/naked-1.c: Make scan patterns more precise.
	* gcc.target/i386/naked-2.c: Same.

From-SVN: r254338
This commit is contained in:
Tom de Vries 2017-11-02 09:07:27 +00:00 committed by Tom de Vries
parent a4d758d005
commit 331b46738c
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2017-11-02 Tom de Vries <tom@codesourcery.com>
PR testsuite/82415
* gcc.target/i386/naked-1.c: Make scan patterns more precise.
* gcc.target/i386/naked-2.c: Same.
2017-11-02 Richard Biener <rguenther@suse.de>
PR middle-end/82765

View File

@ -10,5 +10,5 @@ foo (void)
__asm__ ("# naked");
}
/* { dg-final { scan-assembler "# naked" } } */
/* { dg-final { scan-assembler "ud2" } } */
/* { dg-final { scan-assembler-not "ret" } } */
/* { dg-final { scan-assembler "(?n)^\\s*ud2$" } } */
/* { dg-final { scan-assembler-not "(?n)^\\s*ret$" } } */

View File

@ -10,5 +10,5 @@ foo (void)
__asm__ ("# naked");
}
/* { dg-final { scan-assembler "# naked" } } */
/* { dg-final { scan-assembler-not "push" } } */
/* { dg-final { scan-assembler-not "pop" } } */
/* { dg-final { scan-assembler-not "(?n)^\\s*push" } } */
/* { dg-final { scan-assembler-not "(?n)^\\s*pop" } } */