1
Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
struct processed_utf_bytes previous = {0};
This, as should be expected, works.fatal error: Internal error: cast_tree(#1).
Maybe Pelle can have a look on it.#include <stdio.h>
#include <immintrin.h>
struct test__m128i
{
__m128i rawbytes;
__m128i high_nibbles;
__m128i carried_continuations;
};
int main(int argc, char *argv[])
{
struct test__m128i t = {0};
printf("Hello World! %lld\n", *(long long int *)&t);
}
At this point is hard to say where the problem is, probably inside the compiler itself.Pelles C 11.00.2, This codeApparently you can't call intrinsic function inside an initialization. Changing initialization to:Code: [Select]struct processed_utf_bytes previous = {.rawbytes = _mm_setzero_si128(),
.high_nibbles = _mm_setzero_si128(),
.carried_continuations =
_mm_setzero_si128()};
is producing these errorsCode: [Select]simdutf8check.h(162): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
simdutf8check.h(163): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
simdutf8check.h(165): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
struct processed_utf_bytes previous;
previous.rawbytes = _mm_setzero_si128();
previous.high_nibbles = _mm_setzero_si128();
previous.carried_continuations = _mm_setzero_si128();
Seems to work.warning #2071: Overflow or truncation in constant expression.
struct processed_utf_bytes previous = {.rawbytes = _mm_setzero_si128(),
.high_nibbles = _mm_setzero_si128(),
.carried_continuations =
_mm_setzero_si128()};
simdutf8check.h(162): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
simdutf8check.h(163): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
simdutf8check.h(165): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
struct processed_utf_bytes {
__m128i rawbytes;
__m128i high_nibbles;
__m128i carried_continuations;
};