1 // RUN: %clang_cc1 -triple i386-unknown-netbsd6 -emit-llvm -o - %s \ 2 // RUN: | FileCheck %s -check-prefixes=CHECK 3 4 // RUN: %clang_cc1 -triple i386-unknown-netbsd7 -emit-llvm -o - %s \ 5 // RUN: | FileCheck %s -check-prefixes=CHECK-EXT 6 7 // RUN: %clang_cc1 -triple i386--linux -emit-llvm -o - %s \ 8 // RUN: | FileCheck %s -check-prefixes=CHECK-EXT 9 10 float f(float x, float y) { 11 // CHECK: define{{.*}} float @f 12 // CHECK: fadd float 13 return 2.0f + x + y; 14 } 15 16 int getEvalMethod(void) { 17 // CHECK: ret i32 1 18 // CHECK-EXT: ret i32 2 19 return __FLT_EVAL_METHOD__; 20 } 21