Optimized FCMP_OEQ and FCMP_UNE for x86.
[oota-llvm.git] / test / CodeGen / X86 / 2008-09-05-sinttofp-2xi32.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep cvttpd2pi | count 1
2 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep cvtpi2pd | count 1
3 ; PR2687
4
5 define <2 x double> @a(<2 x i32> %x) nounwind {
6 entry:
7   %y = sitofp <2 x i32> %x to <2 x double>
8   ret <2 x double> %y
9 }
10
11 define <2 x i32> @b(<2 x double> %x) nounwind {
12 entry:
13   %y = fptosi <2 x double> %x to <2 x i32>
14   ret <2 x i32> %y
15 }