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