summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/3dnowA-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/3dnowA-2.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/3dnowA-2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/3dnowA-2.c b/gcc/testsuite/gcc.target/i386/3dnowA-2.c
new file mode 100644
index 00000000000..0cce3b1318c
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/3dnowA-2.c
@@ -0,0 +1,13 @@
+/* { dg-do assemble { target i?86-*-* x86_64-*-* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-options "-O0 -Werror-implicit-function-declaration -m3dnow -march=athlon" } */
+
+/* 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 "static" and "__inline" results in
+ all of them being compiled as proper functions. */
+
+#define static
+#define __inline
+
+#include <mm3dnow.h>