Skip to content

Commit

Permalink
[software] Include vector type v2h only when compiler is LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertuletti committed Jan 5, 2024
1 parent afb0d69 commit 241dd65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions software/runtime/xpulp/builtins_v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
typedef signed short v2s __attribute__((vector_size(4)));
typedef unsigned short v2u __attribute__((vector_size(4)));

#ifdef __clang__
typedef __fp16 v2f16 __attribute__((vector_size(4)));
typedef union {
float f32;
v2f16 vec;
} v2h;
#endif

typedef signed char v4s __attribute__((vector_size(4)));
typedef unsigned char v4u __attribute__((vector_size(4)));
Expand Down

0 comments on commit 241dd65

Please sign in to comment.