[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / X86 / fp-eval-method.c
blobc1d8f617400d51761239e1ac79b80588c80e7982
1 // RUN: %clang_cc1 -triple i386-unknown-netbsd -emit-llvm -o - %s \
2 // RUN: | FileCheck %s -check-prefixes=CHECK-EXT
4 // RUN: %clang_cc1 -triple i386--linux -emit-llvm -o - %s \
5 // RUN: | FileCheck %s -check-prefixes=CHECK-EXT
7 float f(float x, float y) {
8 // CHECK: define{{.*}} float @f
9 // CHECK: fadd float
10 return 2.0f + x + y;
13 int getEvalMethod(void) {
14 // CHECK: ret i32 1
15 // CHECK-EXT: ret i32 2
16 return __FLT_EVAL_METHOD__;