[flang-commits] [flang] [flang][test] Restrict Semantics/kinds04_q10.f90 to x86_64 (PR #103724)
Daniel Chen via flang-commits
flang-commits at lists.llvm.org
Fri Aug 16 07:50:38 PDT 2024
DanielCChen wrote:
It seems to me that the code would "work" on little-endian system regardless if it supports `REAL(10)` is that the 10-byte literal was truncated to 10-byte FP format and then is assigned(convert?) to `REAL(16)` in FE. It is `f128` at LLVM IR.
The code that does these works for little-endian but didn't work properly for bid-endian system like AIX.
The IR for `1.00000000000000000001Q0_10` on little-endian (Linux on Power)
```
0xL00000000000000003FFF000000000000
```
The same literal on big-endian (AIX)
```
0xL00000000000000000000000000007FFF
```
https://github.com/llvm/llvm-project/pull/103724
More information about the flang-commits
mailing list