diff options
author | Richard Henderson <rth@redhat.com> | 2010-08-11 11:40:45 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2010-08-11 11:40:45 -0700 |
commit | 51ba747afcde4335b7b7888b179da1d6d4917152 (patch) | |
tree | 14bf9c8f3e72741d2eab35f014270d399e3a904b /gcc | |
parent | 633e8e192b5c2c3ff1fa29c5dfa86f42192acc90 (diff) | |
download | gcc-51ba747afcde4335b7b7888b179da1d6d4917152.zip gcc-51ba747afcde4335b7b7888b179da1d6d4917152.tar.gz gcc-51ba747afcde4335b7b7888b179da1d6d4917152.tar.bz2 |
* config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
From-SVN: r163103
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 92e6b58..f9ce2f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-08-11 Richard Henderson <rth@redhat.com> + + * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New. + 2010-08-11 Nick Clifton <nickc@redhat.com> * config/stormy16/stormy16-lib2.c (__cmpsi2): New function. diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index a2acc71..7fd874b 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1104,6 +1104,12 @@ enum target_cpu_default : (MODE) == QImode && (REGNO) > BX_REG && !TARGET_64BIT ? SImode \ : (MODE)) +/* The only ABI that saves SSE registers across calls is Win64 (thus no + need to check the current ABI here), and with AVX enabled Win64 only + guarantees that the low 16 bytes are saved. */ +#define HARD_REGNO_CALL_PART_CLOBBERED(REGNO, MODE) \ + (SSE_REGNO_P (REGNO) && GET_MODE_SIZE (MODE) > 16) + /* Specify the registers used for certain standard purposes. The values of these macros are register numbers. */ |