llvm/test/CodeGen/X86/vec_select.ll: Fix failure on xmm-less hosts, to add -mattr...
[oota-llvm.git] / test / CodeGen / X86 / vec_select.ll
1 ; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
2
3 ; When legalizing the v4i1 constant, we need to consider the boolean contents
4 ; For x86 a boolean vector constant is all ones so the constants in memory
5 ; will be ~0U not 1.
6
7 ; CHECK: .long  4294967295
8 ; CHECK: .long  4294967295
9 ; CHECK: .long  0
10 ; CHECK: .long  0
11
12 ; CHECK: test
13 define <4 x i8> @test(<4 x i8> %a, <4 x i8> %b) {
14   %sel = select <4 x i1> <i1 true, i1 true, i1 false, i1 false>, <4 x i8> %a, <4 x i8> %b
15         ret <4 x i8> %sel
16 }