]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/finite-math.c
Vendor import of clang RELEASE_360/rc2 tag r227651 (effectively, 3.6.0 RC2):
[FreeBSD/FreeBSD.git] / test / CodeGen / finite-math.c
1 // RUN: %clang_cc1 -ffinite-math-only -emit-llvm -o - %s | FileCheck %s
2 float f0, f1, f2;
3
4 void foo(void) {
5   // CHECK-LABEL: define void @foo()
6
7   // CHECK: fadd nnan ninf
8   f0 = f1 + f2;
9
10   // CHECK: ret
11 }