Commit a0e6ac44 by Uros Bizjak

force-indirect-call-1.c: Merge scan strings.

	* gcc.target/i386/force-indirect-call-1.c: Merge scan strings.
	* gcc.target/i386/force-indirect-call-2.c: Ditto.
	Require fpic effective target.
	* gcc.target/i386/force-indirect-call-3.c: Ditto.
	Require lp64 effective target.

From-SVN: r254635
parent a76e0b43
2017-11-10 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/force-indirect-call-1.c: Merge scan strings.
* gcc.target/i386/force-indirect-call-2.c: Ditto.
Require fpic effective target.
* gcc.target/i386/force-indirect-call-3.c: Ditto.
Require lp64 effective target.
2017-11-10 Julia Koval <julia.koval@intel.com> 2017-11-10 Julia Koval <julia.koval@intel.com>
* gcc.target/i386/avx-1.c: Handle new intrinsics. * gcc.target/i386/avx-1.c: Handle new intrinsics.
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -mforce-indirect-call" } */ /* { dg-options "-O2 -mforce-indirect-call" } */
/* { dg-final { scan-assembler-times "call\[ \\t\]+\\*%" 2 } } */ /* { dg-final { scan-assembler-times "(?:call|jmp)\[ \\t\]+\\*%" 3 } } */
/* { dg-final { scan-assembler-times "jmp\[ \\t\]+\\*%" 1 } } */
int x; int x;
int y; int y;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -mforce-indirect-call -fPIC" } */ /* { dg-options "-O2 -mforce-indirect-call -fPIC" } */
/* { dg-final { scan-assembler-times "call\[ \\t\]+\\*%" 2 } } */ /* { dg-require-effective-target fpic } */
/* { dg-final { scan-assembler-times "jmp\[ \\t\]+\\*%" 1 } } */ /* { dg-final { scan-assembler-times "(?:call|jmp)\[ \\t\]+\\*%" 3 } } */
#include "force-indirect-call-1.c" #include "force-indirect-call-1.c"
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -mforce-indirect-call -mcmodel=medium" } */ /* { dg-options "-O2 -mforce-indirect-call -mcmodel=medium" } */
/* { dg-final { scan-assembler-times "call\[ \\t\]+\\*%" 2 } } */ /* { dg-require-effective-target lp64 } */
/* { dg-final { scan-assembler-times "jmp\[ \\t\]+\\*%" 1 } } */ /* { dg-final { scan-assembler-times "(?:call|jmp)\[ \\t\]+\\*%" 3 } } */
#include "force-indirect-call-1.c" #include "force-indirect-call-1.c"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment