diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-03-14 23:49:44 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-03-14 23:49:44 +0000 |
commit | dd7a300c10bb0aaaf9e044c2180ca1b4c84e40c7 (patch) | |
tree | 855591f6c45fd0a1e5a66c3291a2e36dd3f59a01 /test/CodeGen/X86/vec_align_i256.ll | |
parent | cacff672dd532d882727a51e73c96f19fde45828 (diff) | |
download | llvm-dd7a300c10bb0aaaf9e044c2180ca1b4c84e40c7.tar.gz llvm-dd7a300c10bb0aaaf9e044c2180ca1b4c84e40c7.tar.bz2 llvm-dd7a300c10bb0aaaf9e044c2180ca1b4c84e40c7.tar.xz |
Unaligned loads should use the VMOVUPS opcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_align_i256.ll')
-rw-r--r-- | test/CodeGen/X86/vec_align_i256.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_align_i256.ll b/test/CodeGen/X86/vec_align_i256.ll new file mode 100644 index 0000000000..44ca5c5c8e --- /dev/null +++ b/test/CodeGen/X86/vec_align_i256.ll @@ -0,0 +1,11 @@ +; RUN: llc < %s -mcpu=corei7-avx | FileCheck %s + +; Make sure that we are not generating a movaps because the vector is aligned to 1. +;CHECK: @foo +;CHECK: xor +;CHECK-NEXT: vmovups +;CHECK-NEXT: ret +define void @foo() { + store <16 x i16> zeroinitializer, <16 x i16>* undef, align 1 + ret void +} |