1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s 2 3 define ptx_device float @t1_f32(float %x, float %y, float %z) { 4 ; CHECK: fma.rn.f32 %f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}; 5 ; CHECK: ret; 6 %a = fmul float %x, %y 7 %b = fadd float %a, %z 8 ret float %b 9 } 10 11 define ptx_device double @t1_f64(double %x, double %y, double %z) { 12 ; CHECK: fma.rn.f64 %fl{{[0-9]+}}, %fl{{[0-9]+}}, %fl{{[0-9]+}}, %fl{{[0-9]+}}; 13 ; CHECK: ret; 14 %a = fmul double %x, %y 15 %b = fadd double %a, %z 16 ret double %b 17 } 18