Files
archived-llvm/test/CodeGen/X86/vec_select.ll
NAKAMURA Takumi 2a1b0e7864 llvm/test/CodeGen/X86/vec_select.ll: Fix failure on xmm-less hosts, to add -mattr=+sse2.
FIXME: Should this be tested with both +avx and -avx,+sse2?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162983 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31 10:02:22 +00:00

17 lines
493 B
LLVM

; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
; When legalizing the v4i1 constant, we need to consider the boolean contents
; For x86 a boolean vector constant is all ones so the constants in memory
; will be ~0U not 1.
; CHECK: .long 4294967295
; CHECK: .long 4294967295
; CHECK: .long 0
; CHECK: .long 0
; CHECK: test
define <4 x i8> @test(<4 x i8> %a, <4 x i8> %b) {
%sel = select <4 x i1> <i1 true, i1 true, i1 false, i1 false>, <4 x i8> %a, <4 x i8> %b
ret <4 x i8> %sel
}