This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/41950] New: Unaligned writes (?) to __m128


C:\MinGW\bin>g++.exe -v
Es werden eingebaute Spezifikationen verwendet.
Ziel: mingw32
Konfiguriert mit: ../gcc-4.4.0/configure
--enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --disable-sjlj-exception
s --enable-shared --enable-libgcj --enable-libgomp --with-dwarf2
--disable-win32-registry --enable-libstdcxx-debug --ena
ble-version-specific-runtime-libs --prefix=/mingw
--with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --buil
d=mingw32
Thread-Modell: win32
gcc-Version 4.4.0 (GCC)



The following snippets crash the running application, I guess due to unaligned
writes, but __alignof__ gives me 16 for all three versions, so I really don't
know.

// 0) anonymous namespace: not happy
#include <xmmintrin.h>
namespace { __m128 a; }
int main () {a = _mm_set1_ps(.0f); }

// 1) external: happy
#include <xmmintrin.h>
__m128 a;
int main () { a = _mm_set1_ps(.0f); }

// 2) internal: not happy
#include <xmmintrin.h>
static __m128 a;
int main () { a = _mm_set1_ps(.0f); }


-- 
           Summary: Unaligned writes (?) to __m128
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: phresnel at gmail dot com
 GCC build triplet:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41950


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]