2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=arm | grep bic | count 2
|
|
|
|
; RUN: llc < %s -march=arm -mattr=+v6,+vfp2 | \
|
2009-11-09 01:11:35 +01:00
|
|
|
; RUN: grep vneg | count 2
|
2007-01-04 15:24:32 +01:00
|
|
|
|
2007-01-26 09:25:06 +01:00
|
|
|
define float @test1(float %x, double %y) {
|
2007-01-19 10:20:23 +01:00
|
|
|
%tmp = fpext float %x to double
|
2007-01-26 09:25:06 +01:00
|
|
|
%tmp2 = tail call double @copysign( double %tmp, double %y )
|
2007-01-30 17:16:01 +01:00
|
|
|
%tmp3 = fptrunc double %tmp2 to float
|
|
|
|
ret float %tmp3
|
2007-01-04 15:24:32 +01:00
|
|
|
}
|
|
|
|
|
2007-01-26 09:25:06 +01:00
|
|
|
define double @test2(double %x, float %y) {
|
2007-01-19 10:20:23 +01:00
|
|
|
%tmp = fpext float %y to double
|
2007-01-26 09:25:06 +01:00
|
|
|
%tmp2 = tail call double @copysign( double %x, double %tmp )
|
2007-01-19 10:20:23 +01:00
|
|
|
ret double %tmp2
|
|
|
|
}
|
2007-01-04 15:24:32 +01:00
|
|
|
|
2007-01-26 09:25:06 +01:00
|
|
|
declare double @copysign(double, double)
|