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