This is an archive of the discontinued LLVM Phabricator instance.

[flang] Use APInt to lower 128 bits integer constants
ClosedPublic

Authored by clementval on Sep 2 2022, 7:19 AM.

Details

Summary

Lowering was truncating 128 bits integer to 64 bits. This
patch makes use of APInt to lower 128 bits integer correctly.

program bug
  print *, 170141183460469231731687303715884105727_16
end

! Before patch: 18446744073709551615
! With patch: 170141183460469231731687303715884105727

Diff Detail

Event Timeline

clementval created this revision.Sep 2 2022, 7:19 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 2 2022, 7:19 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Sep 2 2022, 7:19 AM
vdonaldson accepted this revision.Sep 2 2022, 9:25 AM
This revision is now accepted and ready to land.Sep 2 2022, 9:25 AM
This revision was automatically updated to reflect the committed changes.