[all-commits] [llvm/llvm-project] 6b9b85: [flang] Use APInt to lower 128 bits integer constants

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Fri Sep 2 11:45:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b9b85b79d09b8fd107be1aa6a5fa91d49a36d4e
      https://github.com/llvm/llvm-project/commit/6b9b85b79d09b8fd107be1aa6a5fa91d49a36d4e
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-09-02 (Fri, 02 Sep 2022)

  Changed paths:
    M flang/lib/Lower/ConvertExpr.cpp
    A flang/test/Lower/big-integer-parameter.f90

  Log Message:
  -----------
  [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




More information about the All-commits mailing list