This is an archive of the discontinued LLVM Phabricator instance.

[flang] Write semantics test for atomic_and
ClosedPublic

Authored by ktras on Sep 12 2022, 2:40 PM.

Details

Summary

Write a semantics test for the atomic intrinsic subroutine, atomic_and.

Diff Detail

Event Timeline

ktras created this revision.Sep 12 2022, 2:40 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
ktras requested review of this revision.Sep 12 2022, 2:40 PM
rouson accepted this revision.Sep 15 2022, 3:30 PM

LGTM

flang/test/Semantics/atomic02.f90
23

Consider adding

call atomic_and(atom=scalar_coarray, value=val)
call atomic_and(scalar_coarray, value=val, stat=status)
call atomic_and(scalar_coarray, val, stat=status)
This revision is now accepted and ready to land.Sep 15 2022, 3:30 PM
This revision was automatically updated to reflect the committed changes.
ktras marked an inline comment as done.Sep 19 2022, 8:57 AM

Thanks for the feedback. Your suggestions have been done.