forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tree-optimization/116905 - ICE with bogus range ops
The following avoids querying ranges of vector entities. PR tree-optimization/116905 * tree-vect-stmts.cc (supportable_indirect_convert_operation): Fix guard for vect_get_range_info. * gcc.dg/pr116905.c: New testcase.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* { dg-do compile } */ | ||
/* { dg-require-effective-target float16 } */ | ||
/* { dg-options "-frounding-math" } */ | ||
/* { dg-additional-options "-mavx" { target avx } } */ | ||
|
||
typedef __attribute__((__vector_size__(16))) _Float16 F; | ||
typedef __attribute__((__vector_size__(32))) int V; | ||
F f; | ||
|
||
void | ||
foo() | ||
{ | ||
f += __builtin_convertvector((V){3307}, F); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters