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 %ret{{[0-9]+}}, %f{{[0-9]+}};
      5 ; CHECK: 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 %ret{{[0-9]+}}, %fd{{[0-9]+}};
     12 ; CHECK: ret;
     13 	%y = fsub double -0.000000e+00, %x
     14 	ret double %y
     15 }
     16