+2018-02-16 Oleg Endo <olegendo@gcc.gnu.org>
+
+ PR target/83831
+ * config/rx/rx.c (rx_fuse_in_memory_bitop): Convert shift operand
+ to QImode.
+
2018-02-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/84037
if (volatile_insn_p (PATTERN (i)) || CALL_P (i))
return false;
- emit_insn (gen_insn (mem, operands[1]));
+ emit_insn (gen_insn (mem, gen_lowpart (QImode, operands[1])));
set_insn_deleted (op2_def.insn);
set_insn_deleted (op0_use);
return true;
+2018-02-14 Oleg Endo <olegendo@gcc.gnu.org>
+
+ PR target/83831
+ * gcc.target/rx/pr83831.c (test_3, test_6): Adjust test cases.
+
2018-02-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/84417
/* { dg-do compile } */
/* { dg-options "-O1" } */
/* { dg-final { scan-assembler-times "bclr" 6 } } */
-/* { dg-final { scan-assembler-times "bset" 6 } } */
-/* { dg-final { scan-assembler-times "bnot" 6 } } */
+/* { dg-final { scan-assembler-times "bset" 7 } } */
+/* { dg-final { scan-assembler-times "bnot" 7 } } */
void
test_0 (char* x, unsigned int y)
}
void
-test_3 (char* x, unsigned int y)
+test_3 (char* x, unsigned int y, unsigned int z)
{
- /* Expect 4x bset here. */
+ /* Expect 5x bset here. */
x[0] |= 0x10;
x[1] = y | (1 << 1);
x[2] |= 0x10;
x[65000] |= 0x10;
+ x[5] |= 1 << z;
}
unsigned int
}
void
-test_6 (char* x, unsigned int y)
+test_6 (char* x, unsigned int y, unsigned int z)
{
- /* Expect 4x bnot here. */
+ /* Expect 5x bnot here. */
x[0] ^= 0x10;
x[1] = y ^ (1 << 1);
x[2] ^= 0x10;
x[65000] ^= 0x10;
+ x[5] ^= 1 << z;
}
unsigned int