1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

correct predication for svcadd

This commit is contained in:
nmeyer-ur 2020-06-02 10:51:39 +02:00
parent 71cf9851e7
commit 7bee4ebb54

View File

@ -453,14 +453,14 @@ struct TimesMinusI{
pred pg1 = acle<float>::pg1();
vecf z_v = acle<float>::zero();
return svcadd_x(pred, z_v, a, 270);
return svcadd_x(pg1, z_v, a, 270);
}
// Complex double
inline vecd operator()(vecd a, vecd b){
pred pg1 = acle<double>::pg1();
vecd z_v = acle<double>::zero();
return svcadd_x(pred, z_v, a, 270);
return svcadd_x(pg1, z_v, a, 270);
}
};
@ -498,14 +498,14 @@ struct TimesI{
pred pg1 = acle<float>::pg1();
vecf z_v = acle<float>::zero();
return svcadd_x(pred, z_v, a, 90);
return svcadd_x(pg1, z_v, a, 90);
}
// Complex double
inline vecd operator()(vecd a, vecd b){
pred pg1 = acle<double>::pg1();
vecd z_v = acle<double>::zero();
return svcadd_x(pred, z_v, a, 90);
return svcadd_x(pg1, z_v, a, 90);
}
};