This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
SSE intrinsics for x86-64
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 14 Jan 2002 19:10:13 +0100
- Subject: SSE intrinsics for x86-64
The following patch installs the mmintrin.h and xmmintrin.h headers
for x86-64 and runs the tests also on x86-64. Currently the
intrinsics cannot be used as Jan Hubicka reported but I'm sure that
will be fixed soon.
The patch was bootstrapped with a cross compiler for x86-64 and
bootstrapped/regtested on i686-linux-gnu.
Ok to commit?
Andreas
2002-01-12 Andreas Jaeger <aj@suse.de>
* config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
* testsuite/gcc.dg/i386-mmx-1.c: Also run on x86-64.
* testsuite/gcc.dg/i386-mmx-2.c: Likewise.
* testsuite/gcc.dg/i386-sse-1.c: Likewise.
* testsuite/gcc.dg/i386-sse-2.c: Likewise.
* testsuite/gcc.dg/i386-sse-3.c: Likewise.
============================================================
Index: gcc/testsuite/gcc.dg/i386-mmx-1.c
--- gcc/testsuite/gcc.dg/i386-mmx-1.c 2002/01/12 07:38:50 1.1
+++ gcc/testsuite/gcc.dg/i386-mmx-1.c 2002/01/14 18:09:53
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -mmmx" } */
/* Test that the intrinsics compile with optimization. All of them are
============================================================
Index: gcc/testsuite/gcc.dg/i386-mmx-2.c
--- gcc/testsuite/gcc.dg/i386-mmx-2.c 2002/01/12 07:38:50 1.1
+++ gcc/testsuite/gcc.dg/i386-mmx-2.c 2002/01/14 18:09:53
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do compile { target i?86-*-* x86_64-*-*} } */
/* { dg-options "-O0 -mmmx" } */
/* Test that the intrinsics compile without optimization. All of them are
============================================================
Index: gcc/testsuite/gcc.dg/i386-sse-1.c
--- gcc/testsuite/gcc.dg/i386-sse-1.c 2002/01/12 07:38:50 1.1
+++ gcc/testsuite/gcc.dg/i386-sse-1.c 2002/01/14 18:09:53
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -msse" } */
/* Test that the intrinsics compile with optimization. All of them are
============================================================
Index: gcc/testsuite/gcc.dg/i386-sse-2.c
--- gcc/testsuite/gcc.dg/i386-sse-2.c 2002/01/12 07:38:50 1.1
+++ gcc/testsuite/gcc.dg/i386-sse-2.c 2002/01/14 18:09:53
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O0 -msse" } */
/* Test that the intrinsics compile without optimization. All of them are
============================================================
Index: gcc/testsuite/gcc.dg/i386-sse-3.c
--- gcc/testsuite/gcc.dg/i386-sse-3.c 2002/01/12 07:38:50 1.1
+++ gcc/testsuite/gcc.dg/i386-sse-3.c 2002/01/14 18:09:53
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -msse" } */
/* Test that the intrinsics compile with optimization. These were not
============================================================
Index: gcc/config.gcc
--- gcc/config.gcc 2002/01/12 07:38:47 1.142
+++ gcc/config.gcc 2002/01/14 18:09:54
@@ -235,6 +235,7 @@
;;
x86_64-*-*)
cpu_type=i386
+ extra_headers="mmintrin.h xmmintrin.h"
;;
ia64-*-*)
extra_headers=ia64intrin.h
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj