[flang-commits] [flang] [flang] Make REAL/COMPLEX(10) a hard error for non-x86 targets (PR #124655)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Tue Jan 28 15:16:43 PST 2025


kkwli wrote:

> > I see the following LIT failures on `ppc64le-*-linux`.
> > ```
> > Failed Tests (10):
> >   Flang :: Lower/HLFIR/convert-variable.f90
> >   Flang :: Lower/Intrinsics/abs.f90
> >   Flang :: Lower/Intrinsics/fma_real16.f90
> >   Flang :: Lower/Intrinsics/modulo.f90
> >   Flang :: Lower/Intrinsics/powi_real16.f90
> >   Flang :: Lower/Intrinsics/random_number_real16.f90
> >   Flang :: Lower/Intrinsics/rrspacing.f90
> >   Flang :: Lower/Intrinsics/sign.f90
> >   Flang :: Lower/assignment.f90
> >   Flang :: Lower/math-lowering/abs.f90
> > ```
> 
> do you have any more information on those failures? I don't have a Power system any more that can build LLVM.

Oops forgot to include the details. They are all due to `real(16)` in the test.

```
FAIL: Flang :: Lower/HLFIR/convert-variable.f90 (14 of 1062)
******************** TEST 'Flang :: Lower/HLFIR/convert-variable.f90' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 2: bbc -emit-hlfir /scratch/kli/llvm-project/flang/test/Lower/HLFIR/convert-variable.f90 -o - | /scratch/kli/wrk/f/build-flang-local/bin/FileCheck /scratch/kli/llvm-project/flang/test/Lower/HLFIR/convert-variable.f90
+ bbc -emit-hlfir /scratch/kli/llvm-project/flang/test/Lower/HLFIR/convert-variable.f90 -o -
+ /scratch/kli/wrk/f/build-flang-local/bin/FileCheck /scratch/kli/llvm-project/flang/test/Lower/HLFIR/convert-variable.f90
/scratch/kli/llvm-project/flang/test/Lower/HLFIR/convert-variable.f90:71:3: error: REAL(KIND=16) is not an enabled type for this target
    real(16), value :: x(100)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
bbc: semantic errors in /scratch/kli/llvm-project/flang/test/Lower/HLFIR/convert-variable.f90
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /scratch/kli/wrk/f/build-flang-local/bin/FileCheck /scratch/kli/llvm-project/flang/test/Lower/HLFIR/convert-variable.f90

--

********************

```

https://github.com/llvm/llvm-project/pull/124655


More information about the flang-commits mailing list