Browse Source

Workaround an ICE in clang 9.0.0

This bug is not there in 8.x nor in the 9.0 daily snapshot.
tags/v0.3.8^2
Isuru Fernando 6 years ago
parent
commit
b863b32ac5
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      kernel/x86_64/dsymv_L_microk_skylakex-2.c

+ 11
- 2
kernel/x86_64/dsymv_L_microk_skylakex-2.c View File

@@ -33,6 +33,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#define HAVE_KERNEL_4x4 1

#if defined(__clang_patchlevel__) && __clang_major__ == 9 && __clang_minor__ == 0 && __clang_patchlevel__ == 0
#pragma clang optimize off
#endif

static void dsymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FLOAT *y, FLOAT *temp1, FLOAT *temp2)
{

@@ -155,7 +159,12 @@ static void dsymv_kernel_4x4(BLASLONG from, BLASLONG to, FLOAT **a, FLOAT *x, FL
temp2[1] += half_accum1[0];
temp2[2] += half_accum2[0];
temp2[3] += half_accum3[0];
}
}

#if defined(__clang_patchlevel__) && __clang_major__ == 9 && __clang_minor__ == 0 && __clang_patchlevel__ == 0
#pragma clang optimize on
#endif

#else
#include "dsymv_L_microk_haswell-2.c"
#endif
#endif

Loading…
Cancel
Save