aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chkp.c
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2017-03-20 09:33:11 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2017-03-20 09:33:11 +0000
commite325aba2a7c44778ab5233dcb4c9bd010837f2b7 (patch)
tree847bd59b1f3c3df6fda4292ba44e72ac9fff3f69 /gcc/tree-chkp.c
parenta4dfaae1051ed23cea9aefaefdef156d0f02c1cd (diff)
downloadgcc-e325aba2a7c44778ab5233dcb4c9bd010837f2b7.zip
gcc-e325aba2a7c44778ab5233dcb4c9bd010837f2b7.tar.gz
gcc-e325aba2a7c44778ab5233dcb4c9bd010837f2b7.tar.bz2
S/390: PR78857: Don't use load and test if result is live.
The FP load and test instruction should not be used for a comparison if the target operand is being used afterwards. It unfortunately turns SNaNs into QNaNs. gcc/ChangeLog: 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com> PR target/78857 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the target operand. A new splitter adds the clobber statement in case the target operand is dead anyway. gcc/testsuite/ChangeLog: 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com> PR target/78857 * gcc.target/s390/load-and-test-fp-1.c: New test. * gcc.target/s390/load-and-test-fp-2.c: New test. From-SVN: r246274
Diffstat (limited to 'gcc/tree-chkp.c')
0 files changed, 0 insertions, 0 deletions