llnl / llnl/rose

Syntax error from xmmintrin.h

Open
#343 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.