source: icGREP/icgrep-devel/llvm-3.6.1.src/test/CodeGen/X86/pr22774.ll @ 4664

Last change on this file since 4664 was 4664, checked in by cameron, 4 years ago

Upgrade LLVM to 3.6.1

File size: 701 bytes
Line 
1; RUN: llc -mattr=avx %s -o - | FileCheck %s
2
3target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
4target triple = "x86_64-pc-linux-gnu"
5
6@in = global <4 x i64> <i64 -1, i64 -1, i64 -1, i64 -1>, align 32
7@out = global <2 x i64> zeroinitializer, align 16
8
9define i32 @_Z3foov() {
10entry:
11; CHECK: {{vmovdqa|vmovaps}} in(%rip), %ymm0
12; CHECK-NEXT: vmovq %xmm0, %xmm0
13; CHECK-NEXT: {{vmovdqa|vmovaps}} %xmm0, out(%rip)
14  %0 = load <4 x i64>* @in, align 32
15  %vecext = extractelement <4 x i64> %0, i32 0
16  %vecinit = insertelement <2 x i64> undef, i64 %vecext, i32 0
17  %vecinit1 = insertelement <2 x i64> %vecinit, i64 0, i32 1
18  store <2 x i64> %vecinit1, <2 x i64>* @out, align 16
19  ret i32 0
20}
Note: See TracBrowser for help on using the repository browser.