Skip to content

Commit

Permalink
Add debug logs to simd_float tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tdermendjiev committed Mar 20, 2018
1 parent feac5bd commit bb634af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testsuite/libffi.call/simd_float_matrices.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <---- 2x2\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand All @@ -238,6 +239,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <----2x3\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand All @@ -252,6 +254,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <----2x4\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand All @@ -266,6 +269,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <----3x2\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand All @@ -280,6 +284,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <----3x3\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand All @@ -294,6 +299,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <----3x4\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand All @@ -308,6 +314,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <----4x2\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand All @@ -322,6 +329,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <----4x3\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand All @@ -336,6 +344,7 @@ int main(void) {
for (i = 0; i < dimensions[0]; i++) {
int y;
for (y = 0; y < dimensions[1]; y++) {
printf("%f == %f <----4x4\n", m->columns[i][y],floatsContainer[u]);
CHECK(m->columns[i][y] == floatsContainer[u]);
u++;
}
Expand Down

0 comments on commit bb634af

Please sign in to comment.