diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/xop-check.h')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/xop-check.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/i386/xop-check.h b/gcc/testsuite/gcc.target/i386/xop-check.h index fb98c6d4bd4..7e8e665c79f 100644 --- a/gcc/testsuite/gcc.target/i386/xop-check.h +++ b/gcc/testsuite/gcc.target/i386/xop-check.h @@ -5,6 +5,13 @@ static void xop_test (void); +static void +__attribute__ ((noinline)) +do_test (void) +{ + xop_test (); +} + int main () { @@ -15,7 +22,7 @@ main () /* Run XOP test only if host has XOP support. */ if (ecx & bit_XOP) - xop_test (); + do_test (); exit (0); } |