public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* AVX  __m256i return value
@ 2014-07-06  3:15 Roland Schulz
  2014-07-06  6:53 ` Václav Zeman
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Schulz @ 2014-07-06  3:15 UTC (permalink / raw)
  To: cygwin

Hi,

a non-inline function which returns a __m256i causes a segfault under Cygwin. 
It seems it tries to save the return value on the stack without proper 
alignment:
   0x0000000100404dcb <+153>:   mov    0x30(%rbp),%rax
=> 0x0000000100404dcf <+157>:   vmovdqa %ymm0,(%rax)

This is with GCC 4.8.3. The code is fine with GCC/Clang/ICC under Linux and 
MSVC/ICC under Windows. Is this a known problem or should I file a more 
detailed bug report? If so should I report this here or on the GCC bugzilla?

Roland


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: AVX  __m256i return value
  2014-07-06  3:15 AVX __m256i return value Roland Schulz
@ 2014-07-06  6:53 ` Václav Zeman
  0 siblings, 0 replies; 2+ messages in thread
From: Václav Zeman @ 2014-07-06  6:53 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

On 6.7.2014 05:13, Roland Schulz wrote:
> Hi,
> 
> a non-inline function which returns a __m256i causes a segfault under Cygwin. 
> It seems it tries to save the return value on the stack without proper 
> alignment:
>    0x0000000100404dcb <+153>:   mov    0x30(%rbp),%rax
> => 0x0000000100404dcf <+157>:   vmovdqa %ymm0,(%rax)
> 
> This is with GCC 4.8.3. The code is fine with GCC/Clang/ICC under Linux and 
> MSVC/ICC under Windows. Is this a known problem or should I file a more 
> detailed bug report? If so should I report this here or on the GCC bugzilla?

I suggest to fill the GCC bugzilla bug report.

-- 
VZ



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 295 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-06  6:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-06  3:15 AVX __m256i return value Roland Schulz
2014-07-06  6:53 ` Václav Zeman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).