// RUN: %clang_cc1 -no-opaque-pointers -fexperimental-strict-floating-point \
// RUN: -triple x86_64-linux-gnu -emit-llvm -o - %s \
// RUN: | FileCheck %s -check-prefixes=CHECK
// RUN: %clang_cc1 -no-opaque-pointers -triple i386--linux -emit-llvm -o - %s \
// RUN: | FileCheck %s -check-prefixes=CHECK-EXT
// RUN: %clang_cc1 -no-opaque-pointers -fexperimental-strict-floating-point \
// RUN: -mreassociate -freciprocal-math -ffp-contract=fast \
// RUN: -ffast-math -triple x86_64-linux-gnu \
// RUN: -emit-llvm -o - %s \
// RUN: | FileCheck %s -check-prefixes=CHECK-FAST
// RUN: %clang_cc1 -no-opaque-pointers -triple i386--linux -mreassociate -freciprocal-math \
// RUN: -ffp-contract=fast -ffast-math -emit-llvm -o - %s \
// RUN: | FileCheck %s -check-prefixes=CHECK-FAST
float a = 1.0f, b = 2.0f, c = 3.0f;
float res2 = a + b + c;
int val3 = __FLT_EVAL_METHOD__;
float res3 = a + b + c;
int val4 = __FLT_EVAL_METHOD__;
// CHECK: @val3 = global i32 -1
// CHECK: @val4 = global i32 0
// CHECK-EXT: @val3 = global i32 -1
// CHECK-EXT: @val4 = global i32 2
// CHECK-FAST: @val3 = global i32 -1
// CHECK-FAST: @val4 = global i32 -1
float res;
int
int
int
int
// Fast-math is enabled with this pragma.
int
int
float res1;
int