Commit 54dbf90c by Uros Bizjak Committed by Uros Bizjak

sibcall-2.c: Xfail dg-final scan-assembler-not, not compilation.

	* gcc.target/i386/sibcall-2.c: Xfail dg-final scan-assembler-not,
	not compilation.
	* gcc.target/i386/sibcall-4.c: Ditto.
	* gcc.target/i386/fuse-caller-save.c: Add -mregparm=1 for ia32 target.

From-SVN: r211120
parent 1828d3e6
2014-06-01 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/sibcall-2.c: Xfail dg-final scan-assembler-not,
not compilation.
* gcc.target/i386/sibcall-4.c: Ditto.
* gcc.target/i386/fuse-caller-save.c: Add -mregparm=1 for ia32 target.
2014-06-01 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/sibcall-2.c (dg-final): Properly escape '[' and ']'
in scan-assembler-not string.
* gcc.target/i386/sibcall-3.c (dg-final): Ditto.
......
/* { dg-do compile } */
/* { dg-options "-O2 -fuse-caller-save" } */
/* { dg-additional-options "-mregparm=1" { target ia32 } } */
/* Testing -fuse-caller-save optimization option. */
static int __attribute__((noinline))
......
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
extern int (*foo)(int);
......
/* { dg-do compile { xfail { *-*-* } } } */
/* { dg-require-effective-target ia32 } */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
extern int doo1 (int);
......@@ -13,4 +12,4 @@ int foo (int a)
return (a < 0 ? doo1 : doo2) (a);
}
/* { dg-final { scan-assembler-not "call\[ \t\]*.%eax" } } */
/* { dg-final { scan-assembler-not "call\[ \t\]*.%eax" { xfail *-*-* } } } */
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
extern
......
/* Testcase for PR target/46219. */
/* { dg-do compile { xfail { *-*-* } } } */
/* { dg-require-effective-target ia32 } */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
typedef void (*dispatch_t)(long offset);
......@@ -12,4 +11,4 @@ void male_indirect_jump (long offset)
dispatch[offset](offset);
}
/* { dg-final { scan-assembler-not "jmp\[ \t\]*.%eax" } } */
/* { dg-final { scan-assembler-not "jmp\[ \t\]*.%eax" { xfail *-*-* } } } */
/* Check that indirect sibcalls understand regparm. */
/* { dg-do run } */
/* { dg-require-effective-target ia32 } */
/* { dg-do run { target ia32 } } */
/* { dg-options "-O2" } */
extern void abort (void);
......
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
typedef void *ira_loop_tree_node_t;
......
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