- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
i have a small program using an elemental function to compute the edit distance of two strings:
[cpp]
__attribute__((vector))
int compare(char x, char y) {
if (x == y) {
return(1);
} else {
return(0);
}
}
int main()
{
char a[3] = {'A','A','A'};
char b[3] = {'A','A','A'};
int c[3];
for (int i = 0; i < 3; i++) {
c = compare(a, b);
cout << c;
}
return 0;
}
[/cpp]
When compiling, i receive the following error message:
test.cpp: In function ‘__vector(4) int compare._simdsimd_B4m_v1(char, char)’:
test.cpp:9:5: internal compiler error: in convert_move, at expr.c:353
int compare(char x, char y) {
^
This does not happen, if i use an array of integers instead of chars.
I use the latest version of the gcc cilkplus-branch (checked out today).
regards
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page