[flang] Use APInt to lower 128 bits integer constants
authorValentin Clement <clementval@gmail.com>
Fri, 2 Sep 2022 18:44:44 +0000 (20:44 +0200)
committerValentin Clement <clementval@gmail.com>
Fri, 2 Sep 2022 18:44:56 +0000 (20:44 +0200)
commit6b9b85b79d09b8fd107be1aa6a5fa91d49a36d4e
treeba499a926bc5289adb712cc2dfdcbdfb6172b6cb
parentc55bf526356bab67fcd65eafb2ca253c20e0715e
[flang] Use APInt to lower 128 bits integer constants

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
```

Reviewed By: vdonaldson

Differential Revision: https://reviews.llvm.org/D133206
flang/lib/Lower/ConvertExpr.cpp
flang/test/Lower/big-integer-parameter.f90 [new file with mode: 0644]