-
-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21a7b2d
commit c3a960d
Showing
5 changed files
with
89 additions
and
18 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
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,28 @@ | ||
/* DISABLED: win32 linux32 | ||
*/ | ||
|
||
// https://issues.dlang.org/show_bug.cgi?id=23875 | ||
// https://issues.dlang.org/show_bug.cgi?id=23880 | ||
|
||
int __attribute__((vector_size(16))) neptune() | ||
{ | ||
int __attribute__((vector_size (16))) v = { 4,1,2,3 }; | ||
return v; | ||
} | ||
|
||
__attribute__((__vector_size__(16))) int pluto(int i) | ||
{ | ||
int __attribute__((__vector_size__ (16))) * p1; | ||
int * __attribute__((__vector_size__ (16))) p2; | ||
|
||
int __attribute__((__vector_size__ (16))) v1; | ||
__attribute__((__vector_size__ (16))) int v2; | ||
|
||
v1 = (__attribute__((__vector_size__ (16))) int) {4,1,2,3}; | ||
|
||
p1 = p2; | ||
*p1 = v1; | ||
v1 = (__attribute__((__vector_size__ (16))) int) v2; | ||
|
||
return i ? v1 : v2; | ||
} |
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,13 @@ | ||
/* DISABLED: win32 linux32 | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/test23875.c(12): Error: __attribute__((vector_size(10))) must be an integer positive power of 2 and be <= 32,768 | ||
fail_compilation/test23875.c(13): Error: value for vector_size expected, not `x` | ||
--- | ||
*/ | ||
|
||
// https://issues.dlang.org/show_bug.cgi?id=23875 | ||
// https://issues.dlang.org/show_bug.cgi?id=23880 | ||
|
||
int __attribute__((vector_size(10))) neptune(); | ||
int __attribute__((vector_size(x))) saturn(); |
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