diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2012-07-10 13:25:08 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2012-07-10 13:25:08 +0000 |
commit | 2dd83eb1ab3b7d7cdef2e244317caefd78be8a45 (patch) | |
tree | 4abb6576dcba0e4b8311743bed378be4ac8e9659 /test/CodeGen/X86/2012-07-10-extload64.ll | |
parent | fae96f17b4b022fccd94a143698112a17d8ddf05 (diff) | |
download | llvm-2dd83eb1ab3b7d7cdef2e244317caefd78be8a45.tar.gz llvm-2dd83eb1ab3b7d7cdef2e244317caefd78be8a45.tar.bz2 llvm-2dd83eb1ab3b7d7cdef2e244317caefd78be8a45.tar.xz |
Improve the loading of load-anyext vectors by allowing the codegen to load
multiple scalars and insert them into a vector. Next, we shuffle the elements
into the correct places, as before.
Also fix a small dagcombine bug in SimplifyBinOpWithSameOpcodeHands, when the
migration of bitcasts happened too late in the SelectionDAG process.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2012-07-10-extload64.ll')
-rw-r--r-- | test/CodeGen/X86/2012-07-10-extload64.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2012-07-10-extload64.ll b/test/CodeGen/X86/2012-07-10-extload64.ll new file mode 100644 index 0000000000..3284f5e7e3 --- /dev/null +++ b/test/CodeGen/X86/2012-07-10-extload64.ll @@ -0,0 +1,13 @@ +; RUN: llc < %s -march=x86 -mcpu=corei7 -mtriple=i686-pc-win32 | FileCheck %s + +; CHECK: load_store +define void @load_store(<4 x i16>* %in) { +entry: + %A27 = load <4 x i16>* %in, align 4 + %A28 = add <4 x i16> %A27, %A27 + store <4 x i16> %A28, <4 x i16>* %in, align 4 + ret void +; CHECK: movd +; CHECK: pinsrd +; CHECK: ret +} |