xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/cvtv2f32.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; A bug fix in the DAGCombiner made this test fail, so marking as xfail
2*9880d681SAndroid Build Coastguard Worker; until this can be investigated further.
3*9880d681SAndroid Build Coastguard Worker; XFAIL: *
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-linux-pc -mcpu=corei7 | FileCheck %s
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine <2 x float> @foo(i32 %x, i32 %y, <2 x float> %v) {
8*9880d681SAndroid Build Coastguard Worker  %t1 = uitofp i32 %x to float
9*9880d681SAndroid Build Coastguard Worker  %t2 = insertelement <2 x float> undef, float %t1, i32 0
10*9880d681SAndroid Build Coastguard Worker  %t3 = uitofp i32 %y to float
11*9880d681SAndroid Build Coastguard Worker  %t4 = insertelement <2 x float> %t2, float %t3, i32 1
12*9880d681SAndroid Build Coastguard Worker  %t5 = fmul <2 x float> %v, %t4
13*9880d681SAndroid Build Coastguard Worker  ret <2 x float> %t5
14*9880d681SAndroid Build Coastguard Worker; CHECK: foo
15*9880d681SAndroid Build Coastguard Worker; CHECK: or
16*9880d681SAndroid Build Coastguard Worker; CHECK: subpd
17*9880d681SAndroid Build Coastguard Worker; CHECK: cvtpd2ps
18*9880d681SAndroid Build Coastguard Worker; CHECK: ret
19*9880d681SAndroid Build Coastguard Worker}
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workerdefine <2 x float> @bar(<2 x i32> %in) {
22*9880d681SAndroid Build Coastguard Worker  %r = uitofp <2 x i32> %in to <2 x float>
23*9880d681SAndroid Build Coastguard Worker  ret <2 x float> %r
24*9880d681SAndroid Build Coastguard Worker; CHECK: bar
25*9880d681SAndroid Build Coastguard Worker; CHECK: or
26*9880d681SAndroid Build Coastguard Worker; CHECK: subpd
27*9880d681SAndroid Build Coastguard Worker; CHECK: cvtpd2ps
28*9880d681SAndroid Build Coastguard Worker; CHECK: ret
29*9880d681SAndroid Build Coastguard Worker}
30