[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/15708] New: Illegal instruction with -mavx
From: |
oysteijo at gmail dot com |
Subject: |
[Bug gas/15708] New: Illegal instruction with -mavx |
Date: |
Mon, 01 Jul 2013 15:12:47 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=15708
Bug ID: 15708
Summary: Illegal instruction with -mavx
Product: binutils
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: oysteijo at gmail dot com
Hi,
To take full advantage of the hardware I'm on, I had to compile my own GCC
suite, and also compile binutils. However I think something has gone wrong
on
the way.
$ cat mytest.c
#include <stdio.h>
int main()
{
float hello = 8.543f; /* or any other number value */
printf("hello: %5.3f\n", hello );
return 0;
}
$ gcc -o mytest mytest.o && ./mytest
hello: 8.543
So that works as expected.
$ gcc -mavx -o mytest mytest.o
$ ./mytest
Illegal instruction
What? Just adding the -mavx flag and something goes wrong?
Here's versions:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/private/ojohans/personal/bin/../libexec/gcc/x86_64-u
nknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk-source/gcc/configure
--enable-languages=c,c++,fortran --enable-checking=release --disable-bo
otstrap
--disable-libmudflap --disable-libstdcxx-pch --enable-libgomp --enable-lto
--enable-gold --with-plugin-ld=/usr/bin/gold
--with-cloog-include=/usr/include-cloog --with-cloog-lib=/usr/lib64
--prefix=/usr/local/gcc-trunk
Thread model: posix
gcc version 4.8.0 20121206 (experimental) [trunk revision 194238] (GCC)
$ as --version
GNU assembler (GNU Binutils) 2.23.2
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-unknown-linux-gnu'.
$ cat /proc/cpuinfo | grep Xeon | tail -1
model name : Intel(R) Xeon(R) CPU E5-2687W 0 @ 3.10GHz
Best regards,
-Øystein
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/15708] New: Illegal instruction with -mavx,
oysteijo at gmail dot com <=
- [Bug gas/15708] Illegal instruction with -mavx, hjl.tools at gmail dot com, 2013/07/01
- [Bug gas/15708] Illegal instruction with -mavx, hjl.tools at gmail dot com, 2013/07/01
- [Bug gas/15708] Illegal instruction with -mavx, oysteijo at gmail dot com, 2013/07/01
- [Bug gas/15708] Illegal instruction with -mavx, oysteijo at gmail dot com, 2013/07/01
- [Bug gas/15708] Illegal instruction with -mavx, hjl.tools at gmail dot com, 2013/07/01
- [Bug gas/15708] Illegal instruction with -mavx, oysteijo at gmail dot com, 2013/07/01
- [Bug gas/15708] Illegal instruction with -mavx, hjl.tools at gmail dot com, 2013/07/01