Stackmap shadows should consider call returns a branch target.
[oota-llvm.git] / test / CodeGen / NVPTX / fma.ll
1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -fp-contract=fast | 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 %fd{{[0-9]+}}, %fd{{[0-9]+}}, %fd{{[0-9]+}}, %fd{{[0-9]+}};
13 ; CHECK: ret;
14   %a = fmul double %x, %y
15   %b = fadd double %a, %z
16   ret double %b
17 }