New testcase
[oota-llvm.git] / test / Transforms / InstCombine / vec_shuffle.ll
1 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
2 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep vector_shuffle
3
4 %T = type <4 x float>
5
6 implementation
7
8 %T %test1(%T %v1) {
9   %v2 = shufflevector %T %v1, %T undef, <4 x uint> <uint 0, uint 1, uint 2, uint 3>
10   ret %T %v2
11 }
12
13 %T %test2(%T %v1) {
14   %v2 = shufflevector %T %v1, %T %v1, <4 x uint> <uint 0, uint 5, uint 2, uint 7>
15   ret %T %v2
16 }
17