This is an archive of the discontinued LLVM Phabricator instance.

[flang] Accept & fold IEEE_SELECTED_REAL_KIND
ClosedPublic

Authored by klausler on Apr 7 2021, 1:22 PM.

Details

Summary

F18 supports the standard intrinsic function SELECTED_REAL_KIND
but not its synonym in the standard module IEEE_ARITHMETIC
named IEEE_SELECTED_REAL_KIND until this patch.

Diff Detail

Event Timeline

klausler created this revision.Apr 7 2021, 1:22 PM
klausler requested review of this revision.Apr 7 2021, 1:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2021, 1:22 PM
PeteSteinfeld requested changes to this revision.Apr 7 2021, 4:40 PM

When I run check-flang, I get errors:

******************** TEST 'Flang :: Semantics/modfile40.f90' FAILED ********************
Script:
--
: 'RUN: at line 1';   /local/home/psteinfeld/main/66/flang/test/Semantics/test_modfile.sh /local/home/psteinfeld/main/66/flang/test/Semantics/modfile40.f90 /local/home/psteinfeld/main/66/build/tools/flang/test/Semantics/Output/modfile40.f90.tmp /local/home/psteinfeld/main/66/build/bin/f18
--
Exit Code: 1

Command Output (stdout):
--
Unexpected .mod files produced: m1.mod m2.mod m3.mod m4.mod m5.mod

--
Command Output (stderr):
--
test_modfile.sh: FAIL flang/test/Semantics/modfile40.f90
This revision now requires changes to proceed.Apr 7 2021, 4:40 PM
tskeith added a subscriber: tskeith.Apr 7 2021, 4:55 PM
tskeith added inline comments.
flang/test/Semantics/modfile40.f90
10

There is a 0xfeff character between '!' and 'E' that is causing problems for the test script.

klausler updated this revision to Diff 336552.Apr 9 2021, 1:09 PM

Remove byte order marks that were inadvertently copied from generated module files for comparison in a new test.

tskeith accepted this revision.Apr 9 2021, 5:28 PM
This revision was not accepted when it landed; it landed in state Needs Review.Apr 10 2021, 10:01 AM
This revision was automatically updated to reflect the committed changes.