Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
flang/test/Driver/fast_math.f90
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
! Check that -fno-fast-math doesn't clobber -ffp-contract | ! Check that -fno-fast-math doesn't clobber -ffp-contract | ||||
! RUN: %flang -ffp-contract=off -fno-fast-math -fsyntax-only -### %s -o %t 2>&1 \ | ! RUN: %flang -ffp-contract=off -fno-fast-math -fsyntax-only -### %s -o %t 2>&1 \ | ||||
! RUN: | FileCheck --check-prefix=CHECK-CONTRACT %s | ! RUN: | FileCheck --check-prefix=CHECK-CONTRACT %s | ||||
! CHECK-CONTRACT: -fc1 | ! CHECK-CONTRACT: -fc1 | ||||
! CHECK-CONTRACT-SAME: -ffp-contract=off | ! CHECK-CONTRACT-SAME: -ffp-contract=off | ||||
! Check that -ffast-math causes us to link to crtfastmath.o | ! Check that -ffast-math causes us to link to crtfastmath.o | ||||
! UNSUPPORTED: system-windows | ! UNSUPPORTED: system-windows | ||||
! UNSUPPORTED: target=powerpc{{.*}} | ! UNSUPPORTED: target=powerpc{{.*}} | ||||
mnadeem: We can probably get rid of this as the test now specifies a fixed x86 linux target. | |||||
! RUN: %flang -ffast-math -### %s -o %t 2>&1 \ | ! RUN: %flang -ffast-math -### %s -o %t 2>&1 \ | ||||
! RUN: --target=x86_64-unknown-linux -no-pie --gcc-toolchain="" \ | |||||
! RUN: --sysroot=%S/../../../clang/test/Driver/Inputs/basic_linux_tree \ | |||||
Not Done ReplyInline ActionsI guess reusing the clang tree is fine. mnadeem: I guess reusing the clang tree is fine. | |||||
! RUN: | FileCheck --check-prefix=CHECK-CRT %s | ! RUN: | FileCheck --check-prefix=CHECK-CRT %s | ||||
! CHECK-CRT: {{crtbegin.?\.o}} | ! CHECK-CRT: {{crtbegin.?\.o}} | ||||
! CHECK-CRT-SAME: crtfastmath.o | ! CHECK-CRT-SAME: crtfastmath.o | ||||
! CHECK-CRT-SAME: {{crtend.?\.o}} | ! CHECK-CRT-SAME: {{crtend.?\.o}} |
We can probably get rid of this as the test now specifies a fixed x86 linux target.