Home | History | Annotate | Download | only in PTX
      1 ; RUN: llc < %s -march=ptx32 | FileCheck %s
      2 
      3 define ptx_device float @t1_f32(float %x) {
      4 ; CHECK: neg.f32 r{{[0-9]+}}, r{{[0-9]+}};
      5 ; CHECK-NEXT: ret;
      6 	%y = fsub float -0.000000e+00, %x
      7 	ret float %y
      8 }
      9 
     10 define ptx_device double @t1_f64(double %x) {
     11 ; CHECK: neg.f64 rd{{[0-9]+}}, rd{{[0-9]+}};
     12 ; CHECK-NEXT: ret;
     13 	%y = fsub double -0.000000e+00, %x
     14 	ret double %y
     15 }
     16