diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mmx-2.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mmx-2.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mmx-2.c b/gcc/testsuite/gcc.target/i386/mmx-2.c new file mode 100644 index 000000000..d15ceb185 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/mmx-2.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O0 -Werror-implicit-function-declaration -mmmx" } */ + +/* Test that the intrinsics compile without optimization. All of them are + defined as inline functions in mmintrin.h that reference the proper + builtin functions. Defining away "extern" and "__inline" results in + all of them being compiled as proper functions. */ + +#define extern +#define __inline + +#include <mmintrin.h> |