2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep test
|
2007-01-05 16:12:59 +08:00
|
|
|
|
2007-04-16 22:23:07 +08:00
|
|
|
define float @tst1(float %a, float %b) {
|
2007-01-26 16:25:06 +08:00
|
|
|
%tmp = tail call float @copysignf( float %b, float %a )
|
2007-01-05 16:12:59 +08:00
|
|
|
ret float %tmp
|
|
|
|
}
|
|
|
|
|
2007-04-16 22:23:07 +08:00
|
|
|
define double @tst2(double %a, float %b, float %c) {
|
2009-06-05 06:49:04 +08:00
|
|
|
%tmp1 = fadd float %b, %c
|
2007-01-05 16:12:59 +08:00
|
|
|
%tmp2 = fpext float %tmp1 to double
|
2007-01-26 16:25:06 +08:00
|
|
|
%tmp = tail call double @copysign( double %a, double %tmp2 )
|
2007-01-05 16:12:59 +08:00
|
|
|
ret double %tmp
|
|
|
|
}
|
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
declare float @copysignf(float, float)
|
|
|
|
declare double @copysign(double, double)
|