re PR target/67278 (ICE: verify_gimple failed on darwin 14.5 x86_64)

2016-03-02  Richard Biener  <rguenther@suse.de>
	Uros Bizjak  <ubizjak@gmail.com>

	PR target/67278
	* config/i386/i386.c (type_natural_mode): Handle XFmode vectors.

	* gcc.dg/simd-8.c: New testcase.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>

From-SVN: r233898
This commit is contained in:
Richard Biener 2016-03-02 08:55:42 +00:00 committed by Richard Biener
parent 218db463e0
commit 37d9822023
4 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2016-03-02 Richard Biener <rguenther@suse.de>
Uros Bizjak <ubizjak@gmail.com>
PR target/67278
* config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
2016-03-02 Richard Biener <rguenther@suse.de>
PR middle-end/67278

View File

@ -7794,6 +7794,10 @@ type_natural_mode (const_tree type, const CUMULATIVE_ARGS *cum,
{
machine_mode innermode = TYPE_MODE (TREE_TYPE (type));
/* There are no XFmode vector modes. */
if (innermode = XFmode)
return mode;
if (TREE_CODE (TREE_TYPE (type)) == REAL_TYPE)
mode = MIN_MODE_VECTOR_FLOAT;
else

View File

@ -1,3 +1,9 @@
2016-03-02 Richard Biener <rguenther@suse.de>
Uros Bizjak <ubizjak@gmail.com>
PR target/67278
* gcc.dg/simd-8.c: New testcase.
2016-03-02 Richard Biener <rguenther@suse.de>
PR middle-end/67278

View File

@ -0,0 +1,19 @@
/* { dg-do compile } */
#if __SIZEOF_LONG_DOUBLE__ == 16 || __SIZEOF_LONG_DOUBLE__ == 8
typedef long double a __attribute__((vector_size (32)));
a __attribute__((noinline))
sum (a first, a second)
{
return first + second;
}
a
foo (a x, a y, a z)
{
return sum (x, y) + z;
}
#else
int main() {}
#endif