Follow

uint8x16_t vector1 = ((uint8x16_t){1} > (uint8x16_t){0}) >> 7;
printf("%d\n", vector1[0]); // 1 in clang, 255 in gcc

uint8x16_t vector2 = (uint8x16_t){1} > (uint8x16_t){0};
vector2 = vector2 >> 7;
printf("%d\n", vector2[0]); // 1 in both gcc and clang

🤔

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml