summaryrefslogtreecommitdiff
path: root/gcc/config/i386/unix.h
diff options
context:
space:
mode:
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-26 22:47:37 +0000
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-26 22:47:37 +0000
commitf01b0085259ca60e6e2fd5261001cc195c37115f (patch)
treeb812819a24fd857501335c511c9013e9963573dd /gcc/config/i386/unix.h
parent32bb21f63aac5f170af6e911fa527c92e6916179 (diff)
downloadgcc-f01b0085259ca60e6e2fd5261001cc195c37115f.tar.gz
Add MMX and SSE registers to i386 machine description
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34721 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/unix.h')
-rw-r--r--gcc/config/i386/unix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/i386/unix.h b/gcc/config/i386/unix.h
index 03095c4ddaf..21fac84f6e7 100644
--- a/gcc/config/i386/unix.h
+++ b/gcc/config/i386/unix.h
@@ -73,7 +73,9 @@ Boston, MA 02111-1307, USA. */
#define VALUE_REGNO(MODE) \
(GET_MODE_CLASS (MODE) == MODE_FLOAT \
- && TARGET_FLOAT_RETURNS_IN_80387 ? FIRST_FLOAT_REG : 0)
+ && TARGET_FLOAT_RETURNS_IN_80387 ? FIRST_FLOAT_REG \
+ : (MODE) == TImode || VECTOR_MODE_P (MODE) ? FIRST_SSE_REG \
+ : 0)
/* 1 if N is a possible register number for a function value. */