[X86] Don't use aligned load/store instructions for fp128 if the load/store isn't...
authorCraig Topper <craig.topper@intel.com>
Mon, 2 Jul 2018 17:01:54 +0000 (17:01 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 2 Jul 2018 17:01:54 +0000 (17:01 +0000)
commit56440b974539dea36431e1b2a0da33d462367a09
tree726f96ff5f97079e96ae8a3b6e2c35bb66dc5ce5
parent846f2436e8cdebc963c5920a0579dd8af643513f
[X86] Don't use aligned load/store instructions for fp128 if the load/store isn't aligned.

Similarily, don't fold fp128 loads into SSE instructions if the load isn't aligned. Unless we're targeting an AMD CPU that doesn't check alignment on arithmetic instructions.

Should fix PR38001

llvm-svn: 336121
llvm/lib/Target/X86/X86InstrInfo.td
llvm/lib/Target/X86/X86InstrSSE.td
llvm/test/CodeGen/X86/extract-store.ll
llvm/test/CodeGen/X86/fp128-select.ll