Skip to content

Commit

Permalink
Merge pull request #5118 from martin-frbg/zrot_utestext
Browse files Browse the repository at this point in the history
Disable extended utests for CSROT/ZDROT that invoke undefined behavior
  • Loading branch information
martin-frbg authored Feb 9, 2025
2 parents 1b85b6a + 57208b8 commit c54f541
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions utest/test_extensions/test_crot.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static float c_api_check_csrot(blasint n, blasint inc_x, blasint inc_y, float *c
norm += cblas_scnrm2(n, data_crot.y_test, inc_y_abs);
return (norm / 2);
}

#if 0
/**
* Fortran API specific test
* Test crot by comparing it with caxpby.
Expand All @@ -192,7 +192,7 @@ CTEST(crot, inc_x_0_inc_y_0)
float norm = check_csrot(n, inc_x, inc_y, c, s);
ASSERT_DBL_NEAR_TOL(0.0f, norm, SINGLE_EPS);
}

#endif
/**
* Fortran API specific test
* Test crot by comparing it with caxpby.
Expand Down Expand Up @@ -478,7 +478,7 @@ CTEST(crot, check_n_zero)
float norm = check_csrot(n, inc_x, inc_y, c, s);
ASSERT_DBL_NEAR_TOL(0.0f, norm, SINGLE_EPS);
}

#if 0
/**
* C API specific test
* Test crot by comparing it with caxpby.
Expand All @@ -504,7 +504,7 @@ CTEST(crot, c_api_inc_x_0_inc_y_0)
float norm = c_api_check_csrot(n, inc_x, inc_y, c, s);
ASSERT_DBL_NEAR_TOL(0.0f, norm, SINGLE_EPS);
}

#endif
/**
* C API specific test
* Test crot by comparing it with caxpby.
Expand Down
8 changes: 4 additions & 4 deletions utest/test_extensions/test_zrot.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static double c_api_check_zdrot(blasint n, blasint inc_x, blasint inc_y, double
norm += cblas_dznrm2(n, data_zrot.y_test, inc_y_abs);
return (norm / 2);
}

#if 0
/**
* Fortran API specific test
* Test zrot by comparing it with zaxpby.
Expand All @@ -190,7 +190,7 @@ CTEST(zrot, inc_x_0_inc_y_0)
double norm = check_zdrot(n, inc_x, inc_y, c, s);
ASSERT_DBL_NEAR_TOL(0.0, norm, DOUBLE_EPS);
}

#endif
/**
* Fortran API specific test
* Test zrot by comparing it with zaxpby.
Expand Down Expand Up @@ -476,7 +476,7 @@ CTEST(zrot, check_n_zero)
double norm = check_zdrot(n, inc_x, inc_y, c, s);
ASSERT_DBL_NEAR_TOL(0.0, norm, DOUBLE_EPS);
}

#if 0
/**
* C API specific test
* Test zrot by comparing it with zaxpby.
Expand All @@ -502,7 +502,7 @@ CTEST(zrot, c_api_inc_x_0_inc_y_0)
double norm = c_api_check_zdrot(n, inc_x, inc_y, c, s);
ASSERT_DBL_NEAR_TOL(0.0, norm, DOUBLE_EPS);
}

#endif
/**
* C API specific test
* Test zrot by comparing it with zaxpby.
Expand Down

0 comments on commit c54f541

Please sign in to comment.