This is the mail archive of the
cygwin
mailing list for the Cygwin project.
short C code that uses AVX and fails under Cygwin
- From: Ilya Razenshteyn <ilyaraz at mit dot edu>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Jan 2016 23:20:35 +0300
- Subject: short C code that uses AVX and fails under Cygwin
- Authentication-results: sourceware.org; auth=none
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;
}
--
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