llvm.org GIT mirror llvm / 4b36e07
This test is already covered by llvm/trunk/test/CodeGen/X86/vsel.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139288 91177308-0d34-0410-b5e6-96231b3b80d8 Nadav Rotem 9 years ago
1 changed file(s) with 0 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
+0
-15
test/CodeGen/Generic/promote-integers.ll less more
None ; Test that vectors are scalarized/lowered correctly.
1 ; RUN: llc -march=x86 -promote-elements < %s | FileCheck %s
2
3 ; This test is the poster-child for integer-element-promotion.
4 ; Until this feature is complete, we mark this test as expected to fail.
5 ; CHECK: vector_code
6 ; CHECK: blend
7 ; CHECK: ret
8 define <4 x float> @vector_code(<4 x i64> %A, <4 x i64> %B, <4 x float> %R0, <4 x float> %R1 ) {
9 %C = icmp eq <4 x i64> %A, %B
10 %K = xor <4 x i1> , %C
11 %D = select <4 x i1> %K, <4 x float> %R1, <4 x float> %R0
12 ret <4 x float> %D
13 }
14