diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-11 11:12:09 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-11 11:12:09 +0000 |
commit | bb21973da28b9dcaf5b0a2ea14ec715c498297a3 (patch) | |
tree | 5d3f1e93496c555332655009ae87131517c8054f | |
parent | 555a932349c2c3c304e690007d2ab57b9b5a3001 (diff) |
* i386.c (construct_container): Fix handling of SSE_CLASS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59020 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6e6f241bed6..3b00a986960 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Nov 11 12:06:08 CET 2002 Jan Hubicka <jh@suse.cz> + + * i386.c (construct_container): Fix handling of SSE_CLASS. + 2002-11-10 Joel Sherrill <joel@gcc.gnu.org> * config/m68k/t-crtstuff (crti.o): Use this... diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 7eef256c41a..b02fc4a2092 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2113,14 +2113,16 @@ construct_container (mode, type, in_return, nintregs, nsseregs, intreg, sse_regn sse_regno++; break; case X86_64_SSE_CLASS: - if (i < n && class[i + 1] == X86_64_SSEUP_CLASS) - tmpmode = TImode, i++; + if (i < n - 1 && class[i + 1] == X86_64_SSEUP_CLASS) + tmpmode = TImode; else tmpmode = DImode; exp [nexps++] = gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_REG (tmpmode, SSE_REGNO (sse_regno)), GEN_INT (i*8)); + if (tmpmode == TImode) + i++; sse_regno++; break; default: |