Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / X86 / fp-eval-method.c
blobd74f88b9fe255a14b8a3351f3b648519e4431e96
1 // RUN: %clang_cc1 -triple i386-unknown-netbsd6 -emit-llvm -o - %s \
2 // RUN: | FileCheck %s -check-prefixes=CHECK
4 // RUN: %clang_cc1 -triple i386-unknown-netbsd7 -emit-llvm -o - %s \
5 // RUN: | FileCheck %s -check-prefixes=CHECK-EXT
7 // RUN: %clang_cc1 -triple i386--linux -emit-llvm -o - %s \
8 // RUN: | FileCheck %s -check-prefixes=CHECK-EXT
10 float f(float x, float y) {
11 // CHECK: define{{.*}} float @f
12 // CHECK: fadd float
13 return 2.0f + x + y;
16 int getEvalMethod(void) {
17 // CHECK: ret i32 1
18 // CHECK-EXT: ret i32 2
19 return __FLT_EVAL_METHOD__;