SHA256
8
0
forked from pool/pveclib
Files
pveclib/fix-build-with-newer-toolchain.diff
Gabriel Gomes cf864d0511 Fix build of the test suite with current toolchain from OBS
Error message with current toolchain:

  [   98s] testsuite/vec_perf_f64.c: In function 'timed_fpclassify_f64':
  [   98s] testsuite/vec_perf_f64.c:84:13: error: invalid operands to binary | (have 'vb64_t' {aka '__vector(2) long unsigned int'} and 'vui64_t' {aka '__vector(2) long long unsigned int'})
  [   98s]    84 |       accum |= test_fpclassify_f64 (data0);
  [   98s]       |             ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  [   98s]       |                |
  [   98s]       |                vui64_t {aka __vector(2) long long unsigned int}

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/pveclib?expand=0&rev=7
2020-11-17 21:21:33 +00:00

14 lines
371 B
Diff

diff --git a/src/testsuite/vec_perf_f64.c b/src/testsuite/vec_perf_f64.c
index 63521dc..6756974 100644
--- a/src/testsuite/vec_perf_f64.c
+++ b/src/testsuite/vec_perf_f64.c
@@ -76,7 +76,7 @@ int timed_is_f64 (void)
int timed_fpclassify_f64 (void)
{
#ifndef PVECLIB_DISABLE_F128MATH
- vb64_t accum = {0,0};
+ vui64_t accum = {0,0};
int i;
for (i=0; i<N; i++)