Syntax error from xmmintrin.h
Open
@tristanvdb is already working on this.
Since Oct 27, 2020.
- Dominant language
- C
- Stars
- 688
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
Reproducer t.c:
#include <emmintrin.h>
#include <stdio.h>
typedef union {
__m128i V;
int A[4];
} IV;
void vec_add_kernel(IV *F)
{
printf("%08x %08x %08x %08x\n",F -> A[0],F -> A[1],F -> A[2],F -> A[3]);
}
int main()
{
__m128i allones = _mm_set1_epi32(0);
__m128i zeroones;
__m128i onezeros;
allones = _mm_cmpeq_epi32(allones,allones);
zeroones = _mm_srli_epi16(allones,8);
vec_add_kernel(((IV *)(&zeroones)));
onezeros = _mm_slli_epi16(allones,8);
vec_add_kernel(((IV *)(&onezeros)));
return 0;
}
"/opt/rose_v0.11.4.14/include/edg/gcc_HEADERS/xmmintrin.h",
line 754: error: type name is not allowed
return __m128();
^
"/opt/rose_v0.11.4.14/include/edg/gcc_HEADERS/xmmintrin.h",
line 786: error: type name is not allowed
return __m128();
^
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.