Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -ffinite-math-only -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=FINITE
      2 // RUN: %clang_cc1 -fno-signed-zeros -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK  -check-prefix=NSZ
      3 // RUN: %clang_cc1 -freciprocal-math -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK  -check-prefix=RECIP
      4 
      5 float f0, f1, f2;
      6 
      7 void foo(void) {
      8   // CHECK-LABEL: define {{.*}}void @foo()
      9 
     10   // FINITE: fadd nnan ninf
     11   // NSZ: fadd nsz
     12   // RECIP: fadd arcp
     13   f0 = f1 + f2;
     14 
     15   // CHECK: ret
     16 }
     17 
     18