===================================================================
@@ -1,5 +1,7 @@
/* { 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))
===================================================================
@@ -1,5 +1,4 @@
-/* { dg-do compile } */
-/* { dg-require-effective-target ia32 } */
+/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
extern int (*foo)(int);
===================================================================
@@ -1,5 +1,4 @@
-/* { 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 @@
return (a < 0 ? doo1 : doo2) (a);
}
-/* { dg-final { scan-assembler-not "call\[ \t\]*.%eax" } } */
+/* { dg-final { scan-assembler-not "call\[ \t\]*.%eax" { xfail *-*-* } } } */
===================================================================
@@ -1,5 +1,4 @@
-/* { dg-do compile } */
-/* { dg-require-effective-target ia32 } */
+/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
extern
===================================================================
@@ -1,6 +1,5 @@
/* 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 @@
dispatch[offset](offset);
}
-/* { dg-final { scan-assembler-not "jmp\[ \t\]*.%eax" } } */
+/* { dg-final { scan-assembler-not "jmp\[ \t\]*.%eax" { xfail *-*-* } } } */
===================================================================
@@ -1,6 +1,5 @@
/* 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);
===================================================================
@@ -1,5 +1,4 @@
-/* { dg-do compile } */
-/* { dg-require-effective-target ia32 } */
+/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
typedef void *ira_loop_tree_node_t;