Skip to content

Commit

Permalink
Fix simd12_t size (#85362)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Apr 26, 2023
1 parent 21f033a commit 71557db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/coreclr/jit/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ struct simd8_t
return {};
}
};
static_assert_no_msg(sizeof(simd8_t) == 8);

#include <pshpack4.h>
struct simd12_t
{
union {
Expand Down Expand Up @@ -109,6 +111,8 @@ struct simd12_t
return {};
}
};
#include <poppack.h>
static_assert_no_msg(sizeof(simd12_t) == 12);

struct simd16_t
{
Expand Down Expand Up @@ -161,6 +165,7 @@ struct simd16_t
return {};
}
};
static_assert_no_msg(sizeof(simd16_t) == 16);

#if defined(TARGET_XARCH)
struct simd32_t
Expand Down Expand Up @@ -215,6 +220,7 @@ struct simd32_t
return {};
}
};
static_assert_no_msg(sizeof(simd32_t) == 32);

struct simd64_t
{
Expand Down Expand Up @@ -269,6 +275,7 @@ struct simd64_t
return {};
}
};
static_assert_no_msg(sizeof(simd64_t) == 64);

typedef simd64_t simd_t;
#else
Expand Down

0 comments on commit 71557db

Please sign in to comment.