rs6000.c (rs6000_adjust_atomic_subword): Use BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte endianness.
* config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte endianness. From-SVN: r212258
This commit is contained in:
parent
90c4f6ba0a
commit
283bbe35a1
|
@ -1,3 +1,9 @@
|
|||
2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
|
||||
|
||||
* config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
|
||||
BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
|
||||
endianness.
|
||||
|
||||
2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
|
||||
|
||||
* loop-invariant.c (struct invariant): Add a new member: eqno;
|
||||
|
|
|
@ -19897,7 +19897,7 @@ rs6000_adjust_atomic_subword (rtx orig_mem, rtx *pshift, rtx *pmask)
|
|||
shift = gen_reg_rtx (SImode);
|
||||
addr = gen_lowpart (SImode, addr);
|
||||
emit_insn (gen_rlwinm (shift, addr, GEN_INT (3), GEN_INT (shift_mask)));
|
||||
if (WORDS_BIG_ENDIAN)
|
||||
if (BYTES_BIG_ENDIAN)
|
||||
shift = expand_simple_binop (SImode, XOR, shift, GEN_INT (shift_mask),
|
||||
shift, 1, OPTAB_LIB_WIDEN);
|
||||
*pshift = shift;
|
||||
|
|
Loading…
Reference in New Issue