re PR target/63783 ([SH] Miscompilation of boolean negation on SH4 using -O2)
authorOleg Endo <olegendo@gcc.gnu.org>
Sat, 22 Nov 2014 15:50:10 +0000 (15:50 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sat, 22 Nov 2014 15:50:10 +0000 (15:50 +0000)
commit10f916167ccf8451fb717689eef61d3895c1f2a2
tree3b53032d91c81a0483629d4862477fbb857ea682
parent355e99758bceb3ffed95a0c4fc41fb348e0109d3
re PR target/63783 ([SH] Miscompilation of boolean negation on SH4 using -O2)

gcc/
PR target/63783
PR target/51244
* config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
Do not emit bitwise not insn.  Emit logical not insn sequence instead.
Adjust related comments throughout the file.

gcc/testsuite/
PR target/63783
PR target/51244
* gcc.target/sh/torture/pr63783-1.c: New.
* gcc.target/sh/torture/pr63783-2.c: New.
* gcc.target/sh/pr51244-20.c: Adjust.
* gcc.target/sh/pr51244-20-sh2a.c: Adjust.

From-SVN: r217969
gcc/ChangeLog
gcc/config/sh/sh_treg_combine.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr51244-20-sh2a.c
gcc/testsuite/gcc.target/sh/pr51244-20.c
gcc/testsuite/gcc.target/sh/torture/pr63783-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sh/torture/pr63783-2.c [new file with mode: 0644]