-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix __builtin_convertvector escaping the closure
The bultin construct `__builtin_convertvector(a, b)` is not a function but rather a special kind of Expr. Hence we need a visitor to catch it correctly. Signed-off-by: Giuliano Belinassi <[email protected]>
- Loading branch information
1 parent
dd90f5e
commit a3e0395
Showing
2 changed files
with
24 additions
and
0 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
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,16 @@ | ||
/* { dg-options "-Wno-everything -DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/ | ||
|
||
typedef float __v8sf __attribute__ ((__vector_size__ (32))); | ||
|
||
typedef unsigned int __v8su __attribute__ ((__vector_size__ (32))); | ||
|
||
typedef float __m256 __attribute__ ((__vector_size__ (32), __aligned__(32))); | ||
|
||
typedef long long __m256i __attribute__((__vector_size__(32), __aligned__(32))); | ||
|
||
__m256 __attribute__((__nodebug__, __min_vector_width__(256))) | ||
f (__m256i __A) { | ||
return (__m256)__builtin_convertvector((__v8su)__A, __v8sf); | ||
} | ||
|
||
/* { dg-final { scan-tree-dump "typedef float __v8sf __attribute__ \(\(__vector_size__ \(32\)\)\);" } } */ |