xref: /minix3/external/bsd/llvm/dist/llvm/test/Transforms/InstCombine/2012-04-24-vselect.ll (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1; RUN: opt -instcombine -S < %s | FileCheck %s
2
3; CHECK-LABEL: @foo(
4; CHECK: <i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>
5
6define <8 x i32> @foo() nounwind {
7entry:
8  %v1.i = select <8 x i1> <i1 true, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false>,
9    <8 x i32> <i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>,
10    <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>
11  ret <8 x i32> %v1.i
12}
13
14