Commit 34642493 by Richard Henderson Committed by Richard Henderson

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
parent 8138dfe4
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> 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
* gcse.c (gcse_main): Add a comment. * gcse.c (gcse_main): Add a comment.
......
...@@ -3166,8 +3166,8 @@ alpha_expand_unaligned_load (rtx tgt, rtx mem, HOST_WIDE_INT size, ...@@ -3166,8 +3166,8 @@ alpha_expand_unaligned_load (rtx tgt, rtx mem, HOST_WIDE_INT size,
if (TARGET_BWX && size == 2) if (TARGET_BWX && size == 2)
{ {
meml = adjust_address (mem, QImode, 0); meml = adjust_address (mem, QImode, ofs);
memh = adjust_address (mem, QImode, 1); memh = adjust_address (mem, QImode, ofs+1);
if (BYTES_BIG_ENDIAN) if (BYTES_BIG_ENDIAN)
tmp = meml, meml = memh, memh = tmp; tmp = meml, meml = memh, memh = tmp;
extl = gen_reg_rtx (DImode); extl = gen_reg_rtx (DImode);
...@@ -3328,8 +3328,8 @@ alpha_expand_unaligned_store (rtx dst, rtx src, ...@@ -3328,8 +3328,8 @@ alpha_expand_unaligned_store (rtx dst, rtx src,
else else
dstl = dsth = const0_rtx; dstl = dsth = const0_rtx;
meml = adjust_address (dst, QImode, 0); meml = adjust_address (dst, QImode, ofs);
memh = adjust_address (dst, QImode, 1); memh = adjust_address (dst, QImode, ofs+1);
if (BYTES_BIG_ENDIAN) if (BYTES_BIG_ENDIAN)
addr = meml, meml = memh, memh = addr; addr = meml, meml = memh, memh = addr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment