Go to file
Sanjay Patel ffd039bde1 Fix program crashes due to alignment exceptions generated for SSE memop instructions (PR22371).
r224330 introduced a bug by misinterpreting the "FeatureVectorUAMem" bit.
The commit log says that change did not affect anything, but that's not correct.
That change allowed SSE instructions to have unaligned mem operands folded into
math ops, and that's not allowed in the default specification for any SSE variant. 

The bug is exposed when compiling for an AVX-capable CPU that had this feature
flag but without enabling AVX codegen. Another mistake in r224330 was not adding
the feature flag to all AVX CPUs; the AMD chips were excluded.

This is part of the fix for PR22371 ( http://llvm.org/bugs/show_bug.cgi?id=22371 ).

This feature bit is SSE-specific, so I've renamed it to "FeatureSSEUnalignedMem".
Changed the existing test case for the feature bit to reflect the new name and
renamed the test file itself to better reflect the feature.
Added runs to fold-vex.ll to check for the failing codegen.

Note that the feature bit is not set by default on any CPU because it may require a
configuration register setting to enable the enhanced unaligned behavior.

llvm-svn: 227983
2015-02-03 17:13:04 +00:00
clang Implement jump scope SEHmantic analysis. 2015-02-03 17:06:08 +00:00
clang-tools-extra [clang-tidy] Fix some false positives in google-readability-casting 2015-01-29 15:17:13 +00:00
compiler-rt [ASan] Remove ifdefs for MAC_OS_X_VERSION_10_6, as ASan assumes OSX >= 10.6 2015-02-03 12:47:15 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Implement log10 2015-01-30 18:00:34 +00:00
libcxx Mark <experimental/system_error> as complete 2015-02-03 16:04:45 +00:00
libcxxabi Adopt CMake policy CMP0042. Set MACOSX_RPATH on by default. 2015-01-26 22:00:30 +00:00
lld Make ELFLinkingContext own LinkerScript buffers 2015-02-03 16:08:57 +00:00
lldb Restore the signal handler for Windows as it is not presistent there. 2015-02-03 11:20:00 +00:00
llgo irgen: don't emit debug metadata for locals 2015-01-29 00:34:30 +00:00
llvm Fix program crashes due to alignment exceptions generated for SSE memop instructions (PR22371). 2015-02-03 17:13:04 +00:00
openmp Pin the libiomp5.dll for the lifetime of application, Windows-specific 2015-01-29 17:18:20 +00:00
polly Add test case for r227805 2015-02-03 15:11:02 +00:00