This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/79127] [7 Regression] Error: invalid register for .seh_savexmm in matmul_i4.c
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jan 2017 14:10:49 +0000
- Subject: [Bug target/79127] [7 Regression] Error: invalid register for .seh_savexmm in matmul_i4.c
- Auto-submitted: auto-generated
- References: <bug-79127-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79127
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps the HAVE_AVX512F configure test is too simple for the SEH purposes.
I've tried:
typedef double __m512d __attribute__ ((__vector_size__ (64)));
typedef double __m256d __attribute__ ((__vector_size__ (32)));
__m512d foo (__m512d, __m512d, __m512d, __m512d, __m512d, __m256d,
__m512d, __m512d);
__m512d _mm512_add (__m512d a, __m256d c)
{
__m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
__m512d f = __builtin_ia32_addpd512_mask (b, a, a, 1, 4);
__m512d g = __builtin_ia32_addpd512_mask (f, a, a, 1, 4);
__m512d h = __builtin_ia32_addpd512_mask (g, a, a, 1, 4);
__m512d e = foo (b, a, b, a, b, c, b, b);
return __builtin_ia32_addpd512_mask (b, e, a, 1, 4) + f + g + h;
}
int
main ()
{
;
return 0;
}
but that still doesn't generate any .seh_savexmm directives (at least not in my
cross-compiler).