PR target/17381 - Unnecessary register move for float extend

2016-01-28  Martin Sebor  <msebor@redhat.com>

	PR target/17381
	* gcc.target/powerpc/pr17381.c: New test.

From-SVN: r232947
This commit is contained in:
Martin Sebor 2016-01-28 21:05:39 +00:00 committed by Martin Sebor
parent eb1b1f0156
commit 494de84f5e
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-01-28 Martin Sebor <msebor@redhat.com>
PR target/17381
* gcc.target/powerpc/pr17381.c: New test.
2016-01-28 Jakub Jelinek <jakub@redhat.com>
PR middle-end/69542

View File

@ -0,0 +1,22 @@
/* PR target/17381 - Unnecessary register move for float extend */
/* { dg-do compile } */
/* { dg-options "-O2" } */
double d;
float test1(float fParm)
{
d = fParm + 1.0;
return fParm + 1.0f;
}
/* { dg-final { scan-assembler-times "fmr" 1 } } */
/* PR target/17381 - Unnecessary register move for float extend */
/* { dg-do compile } */
/* { dg-options "-O2" } */
double d;
float test1(float fParm)
{
d = fParm + 1.0;
return fParm + 1.0f;
}
/* { dg-final { scan-assembler-times "fmr" 1 } } */