mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
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
17 lines
493 B
LLVM
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
|
|
}
|