aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/SIMD/vunpcklps.ll
blob: a87b29965eaa049a42213b6e9a5d0ca734efa662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc < %s -mattr=+avx | FileCheck %s

target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
target triple = "x86_64-unknown-linux-gnu"

define void @try_([2 x <8 x float>]* noalias %incarray, [2 x <8 x float>]* noalias %incarrayb ) {
entry:
	%incarray1 = alloca [2 x <8 x float>]*, align 8
	%incarrayb1 = alloca [2 x <8 x float>]*, align 8
	%carray = alloca [2 x <8 x float>], align 16
	%r = getelementptr [2 x <8 x float>]* %incarray, i32 0, i32 0
	%rb = getelementptr [2 x <8 x float>]* %incarrayb, i32 0, i32 0
	%r3 = load <8 x float>* %r, align 8
	%r4 = load <8 x float>* %rb, align 8
	%r11 = shufflevector <8 x float> %r3, <8 x float> %r4, <8 x i32> < i32 0, i32 8, i32 1, i32 9, i32 4, i32 12, i32 5, i32 13 >		; <<8 x float>> [#uses=1]
; CHECK: vunpcklps
	%r12 = getelementptr [2 x <8 x float>]* %carray, i32 0, i32 1
	store <8 x float> %r11, <8 x float>* %r12, align 4
	ret void
}