diff options
author | Nick Clifton <nickc@redhat.com> | 2007-03-21 16:08:14 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-03-21 16:08:14 +0000 |
commit | af1c101013f1e8c3d2bbcd2fb2153110d81e47d1 (patch) | |
tree | 10dbde9899f49f7d08cdce88c46f2fe782330363 /gas | |
parent | 1d5f2fe90da978c067d28b95b0eb9e504063194d (diff) | |
download | gdb-af1c101013f1e8c3d2bbcd2fb2153110d81e47d1.zip gdb-af1c101013f1e8c3d2bbcd2fb2153110d81e47d1.tar.gz gdb-af1c101013f1e8c3d2bbcd2fb2153110d81e47d1.tar.bz2 |
PR gas/4124
* config/tc-alpha.c (emit_ustX): Fix ustq code generation.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-alpha.c | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1c7b0fe..ca2f6dd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2007-03-21 Anton Ertl <anton@mips.complang.tuw> + + PR gas/4124 + * config/tc-alpha.c (emit_ustX): Fix ustq code generation. + 2007-03-21 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am: Run dep-am. diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 3765b08..e8f0bad 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -1,6 +1,6 @@ /* tc-alpha.c - Processor-specific code for the DEC Alpha AXP CPU. Copyright 1989, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc. Contributed by Carnegie Mellon University, 1993. Written by Alessandro Forin, based on earlier gas-1.38 target CPU files. Modified by Ken Raeburn for gas-2.x and ECOFF support. @@ -2383,15 +2383,15 @@ emit_ustX (const expressionS *tok, newtok[2] = newtok[0]; assemble_tokens ("or", newtok, 3, 1); - /* Emit "stq_u $t9, 0($at)". */ - set_tok_reg (newtok[0], AXP_REG_T9); - set_tok_const (newtok[1], 0); - set_tok_preg (newtok[2], AXP_REG_AT); - assemble_tokens ("stq_u", newtok, 3, 1); - /* Emit "stq_u $t10, size-1($at)". */ set_tok_reg (newtok[0], AXP_REG_T10); set_tok_const (newtok[1], (1 << lgsize) - 1); + set_tok_preg (newtok[2], AXP_REG_AT); + assemble_tokens ("stq_u", newtok, 3, 1); + + /* Emit "stq_u $t9, 0($at)". */ + set_tok_reg (newtok[0], AXP_REG_T9); + set_tok_const (newtok[1], 0); assemble_tokens ("stq_u", newtok, 3, 1); } |