You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
521 B
18 lines
521 B
7 months ago
|
// RUN: %clang_cc1 -ffinite-math-only -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=FINITE
|
||
|
// RUN: %clang_cc1 -fno-signed-zeros -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=NSZ
|
||
|
// RUN: %clang_cc1 -freciprocal-math -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=RECIP
|
||
|
|
||
|
float f0, f1, f2;
|
||
|
|
||
|
void foo(void) {
|
||
|
// CHECK-LABEL: define {{.*}}void @foo()
|
||
|
|
||
|
// FINITE: fadd nnan ninf
|
||
|
// NSZ: fadd nsz
|
||
|
// RECIP: fadd arcp
|
||
|
f0 = f1 + f2;
|
||
|
|
||
|
// CHECK: ret
|
||
|
}
|
||
|
|