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