PTX: Finish new calling convention implementation
[oota-llvm.git] / test / CodeGen / PTX / fneg.ll
1 ; RUN: llc < %s -march=ptx32 | FileCheck %s
2
3 define ptx_device float @t1_f32(float %x) {
4 ; CHECK: neg.f32 r0, r1;
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 rd0, rd1;
12 ; CHECK-NEXT: ret;
13         %y = fsub double -0.000000e+00, %x
14         ret double %y
15 }