Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elbrus (e2k) architecture support #700

Open
wants to merge 14 commits into
base: wip/e2k
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
e2k: Get rid of alignment warnings on arrays
  • Loading branch information
makise-homura committed Feb 25, 2021
commit c08e5739fc981e96d8e18c51ea36cab3e6d9ba88
1 change: 1 addition & 0 deletions simde/simde-align.h
Original file line number Diff line number Diff line change
@@ -457,6 +457,7 @@
*/
#if defined (SIMDE_BUG_LCC_STACK_ALIGNMENT_CAP)
#define SIMDE_ALIGN_REDUCE_STRUCT __attribute__((packed, aligned(16)))
#define SIMDE_ALIGN_REDUCE_ARRAY __attribute__((aligned(16)))
#else
#define SIMDE_ALIGN_REDUCE
#endif
32 changes: 16 additions & 16 deletions simde/x86/svml.h
Original file line number Diff line number Diff line change
@@ -7133,7 +7133,7 @@ simde_mm256_erfcinv_ps (simde__m256 a) {
t = simde_mm256_sqrt_ps(t);
t = simde_mm256_div_ps(simde_mm256_set1_ps(SIMDE_FLOAT32_C(1.0)), t);

const simde__m256 p[] = {
const simde__m256 SIMDE_ALIGN_REDUCE_ARRAY p[] = {
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 0.1550470003116)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 1.382719649631)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 0.690969348887)),
@@ -7142,7 +7142,7 @@ simde_mm256_erfcinv_ps (simde__m256 a) {
simde_mm256_set1_ps(SIMDE_FLOAT32_C(-0.16444156791))
};

const simde__m256 q[] = {
const simde__m256 SIMDE_ALIGN_REDUCE_ARRAY q[] = {
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 0.155024849822)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 1.385228141995)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 1.000000000000))
@@ -7177,14 +7177,14 @@ simde_mm256_erfcinv_ps (simde__m256 a) {
t = simde_mm256_sqrt_ps(t);
t = simde_mm256_div_ps(simde_mm256_set1_ps(SIMDE_FLOAT32_C(1.0)), t);

const simde__m256 p[] = {
const simde__m256 SIMDE_ALIGN_REDUCE_ARRAY p[] = {
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 0.00980456202915)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 0.36366788917100)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 0.97302949837000)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C(-0.5374947401000))
};

const simde__m256 q[] = {
const simde__m256 SIMDE_ALIGN_REDUCE_ARRAY q[] = {
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 0.00980451277802)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 0.36369997154400)),
simde_mm256_set1_ps(SIMDE_FLOAT32_C( 1.00000000000000))
@@ -7283,7 +7283,7 @@ simde_mm256_erfcinv_pd (simde__m256d a) {
t = simde_mm256_sqrt_pd(t);
t = simde_mm256_div_pd(simde_mm256_set1_pd(SIMDE_FLOAT64_C(1.0)), t);

const simde__m256d p[] = {
const simde__m256d SIMDE_ALIGN_REDUCE_ARRAY p[] = {
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 0.1550470003116)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 1.382719649631)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 0.690969348887)),
@@ -7292,7 +7292,7 @@ simde_mm256_erfcinv_pd (simde__m256d a) {
simde_mm256_set1_pd(SIMDE_FLOAT64_C(-0.16444156791))
};

const simde__m256d q[] = {
const simde__m256d SIMDE_ALIGN_REDUCE_ARRAY q[] = {
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 0.155024849822)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 1.385228141995)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 1.000000000000))
@@ -7327,14 +7327,14 @@ simde_mm256_erfcinv_pd (simde__m256d a) {
t = simde_mm256_sqrt_pd(t);
t = simde_mm256_div_pd(simde_mm256_set1_pd(SIMDE_FLOAT64_C(1.0)), t);

const simde__m256d p[] = {
const simde__m256d SIMDE_ALIGN_REDUCE_ARRAY p[] = {
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 0.00980456202915)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 0.36366788917100)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 0.97302949837000)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C(-0.5374947401000))
};

const simde__m256d q[] = {
const simde__m256d SIMDE_ALIGN_REDUCE_ARRAY q[] = {
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 0.00980451277802)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 0.36369997154400)),
simde_mm256_set1_pd(SIMDE_FLOAT64_C( 1.00000000000000))
@@ -7446,7 +7446,7 @@ simde_mm512_erfcinv_ps (simde__m512 a) {
t = simde_mm512_sqrt_ps(t);
t = simde_mm512_div_ps(simde_mm512_set1_ps(SIMDE_FLOAT32_C(1.0)), t);

const simde__m512 p[] = {
const simde__m512 SIMDE_ALIGN_REDUCE_ARRAY p[] = {
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 0.1550470003116)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 1.382719649631)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 0.690969348887)),
@@ -7455,7 +7455,7 @@ simde_mm512_erfcinv_ps (simde__m512 a) {
simde_mm512_set1_ps(SIMDE_FLOAT32_C(-0.16444156791))
};

const simde__m512 q[] = {
const simde__m512 SIMDE_ALIGN_REDUCE_ARRAY q[] = {
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 0.155024849822)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 1.385228141995)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 1.000000000000))
@@ -7490,14 +7490,14 @@ simde_mm512_erfcinv_ps (simde__m512 a) {
t = simde_mm512_sqrt_ps(t);
t = simde_mm512_div_ps(simde_mm512_set1_ps(SIMDE_FLOAT32_C(1.0)), t);

const simde__m512 p[] = {
const simde__m512 SIMDE_ALIGN_REDUCE_ARRAY p[] = {
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 0.00980456202915)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 0.36366788917100)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 0.97302949837000)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( -0.5374947401000))
};

const simde__m512 q[] = {
const simde__m512 SIMDE_ALIGN_REDUCE_ARRAY q[] = {
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 0.00980451277802)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 0.36369997154400)),
simde_mm512_set1_ps(SIMDE_FLOAT32_C( 1.00000000000000))
@@ -7589,7 +7589,7 @@ simde_mm512_erfcinv_pd (simde__m512d a) {
t = simde_mm512_sqrt_pd(t);
t = simde_mm512_div_pd(simde_mm512_set1_pd(SIMDE_FLOAT64_C(1.0)), t);

const simde__m512d p[] = {
const simde__m512d SIMDE_ALIGN_REDUCE_ARRAY p[] = {
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 0.1550470003116)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 1.382719649631)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 0.690969348887)),
@@ -7598,7 +7598,7 @@ simde_mm512_erfcinv_pd (simde__m512d a) {
simde_mm512_set1_pd(SIMDE_FLOAT64_C(-0.16444156791))
};

const simde__m512d q[] = {
const simde__m512d SIMDE_ALIGN_REDUCE_ARRAY q[] = {
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 0.155024849822)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 1.385228141995)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 1.000000000000))
@@ -7633,14 +7633,14 @@ simde_mm512_erfcinv_pd (simde__m512d a) {
t = simde_mm512_sqrt_pd(t);
t = simde_mm512_div_pd(simde_mm512_set1_pd(SIMDE_FLOAT64_C(1.0)), t);

const simde__m512d p[] = {
const simde__m512d SIMDE_ALIGN_REDUCE_ARRAY p[] = {
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 0.00980456202915)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 0.36366788917100)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 0.97302949837000)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( -0.5374947401000))
};

const simde__m512d q[] = {
const simde__m512d SIMDE_ALIGN_REDUCE_ARRAY q[] = {
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 0.00980451277802)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 0.36369997154400)),
simde_mm512_set1_pd(SIMDE_FLOAT64_C( 1.00000000000000))