|
1 |
| -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm %s | FileCheck %s --check-prefix=NO__ERRNO |
2 |
| -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm -fmath-errno %s | FileCheck %s --check-prefix=HAS_ERRNO |
3 |
| -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm -disable-llvm-passes -O2 %s | FileCheck %s --check-prefix=NO__ERRNO |
4 |
| -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm -disable-llvm-passes -O2 -fmath-errno %s | FileCheck %s --check-prefix=HAS_ERRNO |
5 |
| -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm -ffp-exception-behavior=maytrap %s | FileCheck %s --check-prefix=HAS_MAYTRAP |
| 1 | +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm %s | FileCheck %s --check-prefixes=COMMON,NO__ERRNO |
| 2 | +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm -fmath-errno %s | FileCheck %s --check-prefixes=COMMON,HAS_ERRNO |
| 3 | +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm -disable-llvm-passes -O2 %s | FileCheck %s --check-prefixes=COMMON,NO__ERRNO |
| 4 | +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm -disable-llvm-passes -O2 -fmath-errno %s | FileCheck %s --check-prefixes=COMMON,HAS_ERRNO |
| 5 | +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-implicit-function-declaration -w -o - -emit-llvm -ffp-exception-behavior=maytrap %s | FileCheck %s --check-prefixes=COMMON,HAS_MAYTRAP |
6 | 6 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown-gnu -Wno-implicit-function-declaration -w -o - -emit-llvm -fmath-errno %s | FileCheck %s --check-prefix=HAS_ERRNO_GNU
|
7 | 7 | // RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -Wno-implicit-function-declaration -w -o - -emit-llvm -fmath-errno %s | FileCheck %s --check-prefix=HAS_ERRNO_WIN
|
8 | 8 |
|
@@ -374,28 +374,15 @@ void foo(double *d, float f, float *fp, long double *l, int *i, const char *c) {
|
374 | 374 |
|
375 | 375 | fmaximum_num(*d,*d); fmaximum_numf(f,f); fmaximum_numl(*l,*l);
|
376 | 376 |
|
377 |
| -// NO__ERRNO: declare double @llvm.maximumnum.f64(double, double) [[READNONE_INTRINSIC]] |
378 |
| -// NO__ERRNO: declare float @llvm.maximumnum.f32(float, float) [[READNONE_INTRINSIC]] |
379 |
| -// NO__ERRNO: declare x86_fp80 @llvm.maximumnum.f80(x86_fp80, x86_fp80) [[READNONE_INTRINSIC]] |
380 |
| -// HAS_ERRNO: declare double @llvm.maximumnum.f64(double, double) [[READNONE_INTRINSIC]] |
381 |
| -// HAS_ERRNO: declare float @llvm.maximumnum.f32(float, float) [[READNONE_INTRINSIC]] |
382 |
| -// HAS_ERRNO: declare x86_fp80 @llvm.maximumnum.f80(x86_fp80, x86_fp80) [[READNONE_INTRINSIC]] |
383 |
| -// HAS_MAYTRAP: declare double @llvm.maximumnum.f64( |
384 |
| -// HAS_MAYTRAP: declare float @llvm.maximumnum.f32( |
385 |
| -// HAS_MAYTRAP: declare x86_fp80 @llvm.maximumnum.f80( |
| 377 | +// COMMON: declare double @llvm.maximumnum.f64(double, double) [[READNONE_INTRINSIC]] |
| 378 | +// COMMON: declare float @llvm.maximumnum.f32(float, float) [[READNONE_INTRINSIC]] |
| 379 | +// COMMON: declare x86_fp80 @llvm.maximumnum.f80(x86_fp80, x86_fp80) [[READNONE_INTRINSIC]] |
386 | 380 |
|
387 | 381 | fminimum_num(*d,*d); fminimum_numf(f,f); fminimum_numl(*l,*l);
|
388 | 382 |
|
389 |
| -// NO__ERRNO: declare double @llvm.minimumnum.f64(double, double) [[READNONE_INTRINSIC]] |
390 |
| -// NO__ERRNO: declare float @llvm.minimumnum.f32(float, float) [[READNONE_INTRINSIC]] |
391 |
| -// NO__ERRNO: declare x86_fp80 @llvm.minimumnum.f80(x86_fp80, x86_fp80) [[READNONE_INTRINSIC]] |
392 |
| -// HAS_ERRNO: declare double @llvm.minimumnum.f64(double, double) [[READNONE_INTRINSIC]] |
393 |
| -// HAS_ERRNO: declare float @llvm.minimumnum.f32(float, float) [[READNONE_INTRINSIC]] |
394 |
| -// HAS_ERRNO: declare x86_fp80 @llvm.minimumnum.f80(x86_fp80, x86_fp80) [[READNONE_INTRINSIC]] |
395 |
| -// HAS_MAYTRAP: declare double @llvm.minimumnum.f64( |
396 |
| -// HAS_MAYTRAP: declare float @llvm.minimumnum.f32( |
397 |
| -// HAS_MAYTRAP: declare x86_fp80 @llvm.minimumnum.f80( |
398 |
| - |
| 383 | +// COMMON: declare double @llvm.minimumnum.f64(double, double) [[READNONE_INTRINSIC]] |
| 384 | +// COMMON: declare float @llvm.minimumnum.f32(float, float) [[READNONE_INTRINSIC]] |
| 385 | +// COMMON: declare x86_fp80 @llvm.minimumnum.f80(x86_fp80, x86_fp80) [[READNONE_INTRINSIC]] |
399 | 386 |
|
400 | 387 | hypot(f,f); hypotf(f,f); hypotl(f,f);
|
401 | 388 |
|
|
0 commit comments