2b76e638f682d486753fdf9aac5bb84b8658f683
[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 %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 }