+2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
+
+ * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
+ Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
+
2016-09-42 David Edelsohn <dje.gcc@gmail.com>
* configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
case HImode:
{
rtx src = mem;
- if (TARGET_LITTLE_ENDIAN)
+ if (!BYTES_BIG_ENDIAN)
{
src = gen_reg_rtx (HImode);
emit_insn (gen_bswaphi2 (src, mem));
case SImode:
{
rtx src = mem;
- if (TARGET_LITTLE_ENDIAN)
+ if (!BYTES_BIG_ENDIAN)
{
src = gen_reg_rtx (SImode);
emit_insn (gen_bswapsi2 (src, mem));
}
break;
case DImode:
- if (TARGET_LITTLE_ENDIAN)
+ if (!BYTES_BIG_ENDIAN)
emit_insn (gen_bswapdi2 (reg, mem));
else
emit_insn (gen_movdi (reg, mem));
case HImode:
{
rtx src = mem;
- if (TARGET_LITTLE_ENDIAN)
+ if (!BYTES_BIG_ENDIAN)
{
src = gen_reg_rtx (HImode);
emit_insn (gen_bswaphi2 (src, mem));
break;
}
case SImode:
- if (TARGET_LITTLE_ENDIAN)
+ if (!BYTES_BIG_ENDIAN)
emit_insn (gen_bswapsi2 (reg, mem));
else
emit_insn (gen_movsi (reg, mem));
/* If we have an LE target without ldbrx and word_mode is DImode,
then we must avoid using word_mode. */
- int word_mode_ok = !(TARGET_LITTLE_ENDIAN && !TARGET_LDBRX
+ int word_mode_ok = !(!BYTES_BIG_ENDIAN && !TARGET_LDBRX
&& word_mode == DImode);
/* Strategy phase. How many ops will this take and should we expand it? */