blob: 66acda9c9b913648a3571ea9a2dd3b251743dbfa [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001; RUN: llvm-as < %s | llc -march=arm | grep bic | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | \
Dan Gohman8c89a502007-08-15 13:36:28 +00003; RUN: grep fneg | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
5define float @test1(float %x, double %y) {
6 %tmp = fpext float %x to double
7 %tmp2 = tail call double @copysign( double %tmp, double %y )
8 %tmp3 = fptrunc double %tmp2 to float
9 ret float %tmp3
10}
11
12define double @test2(double %x, float %y) {
13 %tmp = fpext float %y to double
14 %tmp2 = tail call double @copysign( double %x, double %tmp )
15 ret double %tmp2
16}
17
18declare double @copysign(double, double)