Skip to content

Commit c54f541

Browse files
authored
Merge pull request #5118 from martin-frbg/zrot_utestext
Disable extended utests for CSROT/ZDROT that invoke undefined behavior
2 parents 1b85b6a + 57208b8 commit c54f541

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

utest/test_extensions/test_crot.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static float c_api_check_csrot(blasint n, blasint inc_x, blasint inc_y, float *c
166166
norm += cblas_scnrm2(n, data_crot.y_test, inc_y_abs);
167167
return (norm / 2);
168168
}
169-
169+
#if 0
170170
/**
171171
* Fortran API specific test
172172
* Test crot by comparing it with caxpby.
@@ -192,7 +192,7 @@ CTEST(crot, inc_x_0_inc_y_0)
192192
float norm = check_csrot(n, inc_x, inc_y, c, s);
193193
ASSERT_DBL_NEAR_TOL(0.0f, norm, SINGLE_EPS);
194194
}
195-
195+
#endif
196196
/**
197197
* Fortran API specific test
198198
* Test crot by comparing it with caxpby.
@@ -478,7 +478,7 @@ CTEST(crot, check_n_zero)
478478
float norm = check_csrot(n, inc_x, inc_y, c, s);
479479
ASSERT_DBL_NEAR_TOL(0.0f, norm, SINGLE_EPS);
480480
}
481-
481+
#if 0
482482
/**
483483
* C API specific test
484484
* Test crot by comparing it with caxpby.
@@ -504,7 +504,7 @@ CTEST(crot, c_api_inc_x_0_inc_y_0)
504504
float norm = c_api_check_csrot(n, inc_x, inc_y, c, s);
505505
ASSERT_DBL_NEAR_TOL(0.0f, norm, SINGLE_EPS);
506506
}
507-
507+
#endif
508508
/**
509509
* C API specific test
510510
* Test crot by comparing it with caxpby.

utest/test_extensions/test_zrot.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static double c_api_check_zdrot(blasint n, blasint inc_x, blasint inc_y, double
164164
norm += cblas_dznrm2(n, data_zrot.y_test, inc_y_abs);
165165
return (norm / 2);
166166
}
167-
167+
#if 0
168168
/**
169169
* Fortran API specific test
170170
* Test zrot by comparing it with zaxpby.
@@ -190,7 +190,7 @@ CTEST(zrot, inc_x_0_inc_y_0)
190190
double norm = check_zdrot(n, inc_x, inc_y, c, s);
191191
ASSERT_DBL_NEAR_TOL(0.0, norm, DOUBLE_EPS);
192192
}
193-
193+
#endif
194194
/**
195195
* Fortran API specific test
196196
* Test zrot by comparing it with zaxpby.
@@ -476,7 +476,7 @@ CTEST(zrot, check_n_zero)
476476
double norm = check_zdrot(n, inc_x, inc_y, c, s);
477477
ASSERT_DBL_NEAR_TOL(0.0, norm, DOUBLE_EPS);
478478
}
479-
479+
#if 0
480480
/**
481481
* C API specific test
482482
* Test zrot by comparing it with zaxpby.
@@ -502,7 +502,7 @@ CTEST(zrot, c_api_inc_x_0_inc_y_0)
502502
double norm = c_api_check_zdrot(n, inc_x, inc_y, c, s);
503503
ASSERT_DBL_NEAR_TOL(0.0, norm, DOUBLE_EPS);
504504
}
505-
505+
#endif
506506
/**
507507
* C API specific test
508508
* Test zrot by comparing it with zaxpby.

0 commit comments

Comments
 (0)