blob: c37456cc9cfac6732c66505b084b74197fc22202 [file] [log] [blame]
Dmitri Gribenkob137c9e2012-12-30 01:28:40 +00001; RUN: opt -instcombine -S < %s | FileCheck %s
Michael Gottesman02a11412012-10-16 21:29:38 +00002
3define void @test(<4 x float> *%in_ptr, <4 x float> *%out_ptr) {
David Blaikiea79ac142015-02-27 21:17:42 +00004 %A = load <4 x float>, <4 x float>* %in_ptr, align 16
Michael Gottesman02a11412012-10-16 21:29:38 +00005 %B = shufflevector <4 x float> %A, <4 x float> undef, <4 x i32> <i32 0, i32 0, i32 undef, i32 undef>
6 %C = shufflevector <4 x float> %B, <4 x float> %A, <4 x i32> <i32 0, i32 1, i32 4, i32 undef>
7 %D = shufflevector <4 x float> %C, <4 x float> %A, <4 x i32> <i32 0, i32 1, i32 2, i32 4>
8; CHECK: %D = shufflevector <4 x float> %A, <4 x float> undef, <4 x i32> zeroinitializer
9 store <4 x float> %D, <4 x float> *%out_ptr
10 ret void
11}