-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]
Description
CFLAGS = -std=c23
Version = Ubuntu 22.0.0 (++20250812082130+296e057d0bf2-1~exp1~20250812082146.1091)
#include <stdint.h>
typedef bool __vbool2 __attribute__((ext_vector_type(2)));
typedef bool __vbool4 __attribute__((ext_vector_type(4)));
typedef bool __vbool8 __attribute__((ext_vector_type(8)));
typedef bool __vbool16 __attribute__((ext_vector_type(16)));
typedef bool __vbool32 __attribute__((ext_vector_type(32)));
typedef bool __vbool64 __attribute__((ext_vector_type(64)));
#define __vbit_cast2 uint8_t
#define __vbit_cast4 uint8_t
#define __vbit_cast8 uint8_t
#define __vbit_cast16 uint16_t
#define __vbit_cast32 uint32_t
#define __vbit_cast64 uint64_t
#define VMASK(bits, x) __builtin_bit_cast(__vbit_cast##bits, __builtin_convertvector(x, __vbool##bits))
typedef int16_t v2int16_t __attribute__((ext_vector_type(2)));
bool v2int16_eq(v2int16_t a, v2int16_t b) {
return VMASK(2, a == b) == 0b11;
}
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]