alpha.c (alpha_expand_unaligned_load): Don't forget to use ofs in BWX two byte special case.

* config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
        use ofs in BWX two byte special case.
        (alpha_expand_unaligned_store): Likewise.

From-SVN: r91731
This commit is contained in:
Richard Henderson 2004-12-04 10:13:50 -08:00 committed by Richard Henderson
parent 8138dfe456
commit 346424935e
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2004-12-04 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
use ofs in BWX two byte special case.
(alpha_expand_unaligned_store): Likewise.
2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
* gcse.c (gcse_main): Add a comment.

View File

@ -3166,8 +3166,8 @@ alpha_expand_unaligned_load (rtx tgt, rtx mem, HOST_WIDE_INT size,
if (TARGET_BWX && size == 2)
{
meml = adjust_address (mem, QImode, 0);
memh = adjust_address (mem, QImode, 1);
meml = adjust_address (mem, QImode, ofs);
memh = adjust_address (mem, QImode, ofs+1);
if (BYTES_BIG_ENDIAN)
tmp = meml, meml = memh, memh = tmp;
extl = gen_reg_rtx (DImode);
@ -3328,8 +3328,8 @@ alpha_expand_unaligned_store (rtx dst, rtx src,
else
dstl = dsth = const0_rtx;
meml = adjust_address (dst, QImode, 0);
memh = adjust_address (dst, QImode, 1);
meml = adjust_address (dst, QImode, ofs);
memh = adjust_address (dst, QImode, ofs+1);
if (BYTES_BIG_ENDIAN)
addr = meml, meml = memh, memh = addr;