• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test that vectors are scalarized/lowered correctly.
2; RUN: llc -march=x86 -promote-elements < %s | FileCheck %s
3
4; This test is the poster-child for integer-element-promotion.
5; Until this feature is complete, we mark this test as expected to fail.
6; XFAIL: *
7; CHECK: vector_code
8; CHECK: ret
9define <4 x float> @vector_code(<4 x i64> %A, <4 x i64> %B, <4 x float> %R0, <4 x float> %R1 )  {
10   %C = icmp eq <4 x i64> %A, %B
11   %K = xor <4 x i1> <i1 1, i1 1, i1 1, i1 1>, %C
12   %D = select <4 x i1> %K, <4 x float> %R1, <4 x float> %R0
13   ret <4 x float> %D
14}
15
16