delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/14/15:50:44

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=Ft6N8J8
eGMSFCk877GnTCZ/KzaHtFBqZXnwlSbcW/tq3wvUm/5gcwXfCyr5HGRZRzQ7W/pG
0igs2MzhXiEWQJ1rKZ9Qgx7JWzcyCEQPSQga9r4dzw5JgXCLMqSN2kU0Y20pFlzn
0dHxqJyQA+KJMUphhXAoT1xVJgCZCvfSWMbc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=Tw0xAjP7cx7lV
AvMQYVAj1o+nrE=; b=pUQWjwC0+RgyVrcIusEqcBGsiR9skqJOzkUflaRHi4qp0
noZ1c40rF9NwewP7lAEblD9RA1rzA+rF1N7q1Z2d97y6ufSFRHSGK4mfcWTT7bF+
zgNOQvr+WNRuMsV9WFDb0/eheshr0y5QTkHynbwArt4Fxj4ZU5WbO/VSbN1LJ0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=ilyarazmitedu, H*f:sk:5698031, razenshteyn, D*mit.edu
X-HELO: mail-yk0-f181.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=lcjocHpMhrDgOd0uBwqRrkOa4S70j8Cn88t3rFZanTQ=; b=mPG98N3mMEoocWSA/CSciNqd7Jz6hSbcRjVcudhsF7Koi0+MRTHLWG6aj7fvJd5gYR QQTNcYhUYxHwfISz/apkOn00AfWWw1ptlkqgd2wfj9rGTEmFVAs0vcOBf+MzPNiHM9Ze DvzE8j8hI7pM3meUgAqDtoV8dwjMcea0nFB9Pwde72Vrz/rr/qAGhkBAZLcQw61CjQZ0 ziLnNpBitx3xd6SwKUeF3d4qxLW/yOQoF9zF5sqXo5epq7QkMqll7JUe3hLjjv1ZlLMD piHJzn21WTwuuLb2/E3ppCYcvVqLDkgAxi2Taekpsd1yitj/oYNLnn93cC1cxvRmwNlc PcAQ==
X-Gm-Message-State: ALoCoQky1a2f+LHNOuX1zccQmEW61m7i00xl91VRCy+BdkVnEbWjYRo7cYu8TOfsu52+UjP426dYjOq/rR9GT5B8XxQIba23aw==
X-Received: by 10.129.146.72 with SMTP id j69mr4658545ywg.217.1452804626809; Thu, 14 Jan 2016 12:50:26 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <56980313.5030205@mit.edu>
References: <56980313 DOT 5030205 AT mit DOT edu>
From: Ismail Donmez <ismail AT i10z DOT com>
Date: Thu, 14 Jan 2016 22:49:57 +0200
Message-ID: <CAFo71_59ybiGsd3Vc_ubs8o_cpO32QqpWAidfiM9hmQ4PpAozQ@mail.gmail.com>
Subject: Re: short C code that uses AVX and fails under Cygwin
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

Hi,

On Thu, Jan 14, 2016 at 10:20 PM, Ilya Razenshteyn <ilyaraz AT mit DOT edu> wrote:
> Hi all,
>
> the below C code fails under Cygwin. More specifically, the environment is:
> Windows 8.1, Cygwin 2.3.1, GCC 4.9.3, CPU 'Intel(R) Core(TM) i7-4510U CPU @
> 2.00GHz', compilation options are '-O0 -mavx'. Is it indeed a bug in Cygwin
> or I don't understand something?
>
> Cheers,
> Ilya
>
> #include "immintrin.h"
>
> __m256 routine(void) {
>   __m256 aux;
>   return aux;
> }
>
> int main(void) {
>   void *buf = malloc(1);
>   __m256 res = routine();
>   return 0;
> }

I believe this is due to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412 ,
https://stackoverflow.com/questions/5983389/how-to-align-stack-at-32-byte-boundary-in-gcc
has an ugly workaround which might work for you.

Regards,
ismail

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019