Give the assembler some input.
[oota-llvm.git] / test / CodeGen / X86 / sse-fcopysign.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 &&
2 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | \
3 ; RUN:    grep pslldq | wc -l | grep 1 &&
4 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not getp test
5
6 define float %test1(float %a, float %b) {
7         %tmp = tail call float %copysignf( float %b, float %a )
8         ret float %tmp
9 }
10
11 define double %test2(double %a, float %b, float %c) {
12         %tmp1 = add float %b, %c
13         %tmp2 = fpext float %tmp1 to double
14         %tmp = tail call double %copysign( double %a, double %tmp2 )
15         ret double %tmp
16 }
17
18 declare float %copysignf(float, float)
19 declare double %copysign(double, double)