This is an archive of the discontinued LLVM Phabricator instance.

[FPEnv] Enable strict fp for AArch64 in clang
ClosedPublic

Authored by john.brawn on Nov 16 2022, 9:54 AM.

Details

Summary

The AArch64 target now has the necessary support for strict fp, so enable it in clang.

Diff Detail

Event Timeline

john.brawn created this revision.Nov 16 2022, 9:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 9:54 AM
john.brawn requested review of this revision.Nov 16 2022, 9:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 9:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ostannard added inline comments.
clang/docs/ReleaseNotes.rst
769

Do we need tests for these command-line options? I only see tests for -ffp-exception-behavior= in this patch.

john.brawn added inline comments.Nov 18 2022, 4:22 AM
clang/docs/ReleaseNotes.rst
769

-ftrapping-math and -ffp-model=strict are both driver-only options that are converted into other cc1 options and tested in Driver/fp-model.c. -frounding-math is tested in a target-independent way in the CodeGen/fpconstrained* tests.

olista01 accepted this revision.Nov 21 2022, 1:54 AM
olista01 added a subscriber: olista01.

LGTM

This revision is now accepted and ready to land.Nov 21 2022, 1:54 AM
This revision was automatically updated to reflect the committed changes.