[flang-commits] [flang] [flang][NFC] do not hard code KIND 10 and 16 in lowering tests (PR #124966)
Kelvin Li via flang-commits
flang-commits at lists.llvm.org
Wed Jan 29 12:41:52 PST 2025
kkwli wrote:
I tested on ppc64le-*-linux and found a failure.
```
******************** TEST 'Flang :: Lower/Intrinsics/ieee_next.f90' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: bbc -emit-fir /scratch/kli/llvm-project/flang/test/Lower/Intrinsics/ieee_next.f90 -o - | /scratch/kli/wrk/f/build-flang-local/bin/FileCheck /scratch/kli/llvm-project/flang/test/Lower/Intrinsics/ieee_next.f90 --check-prefixes=CHECK
+ bbc -emit-fir /scratch/kli/llvm-project/flang/test/Lower/Intrinsics/ieee_next.f90 -o -
+ /scratch/kli/wrk/f/build-flang-local/bin/FileCheck /scratch/kli/llvm-project/flang/test/Lower/Intrinsics/ieee_next.f90 --check-prefixes=CHECK
/scratch/kli/llvm-project/flang/test/Lower/Intrinsics/ieee_next.f90:45:42: error: undefined variable: V_17
! CHECK: %[[V_46:[0-9]+]] = fir.load %[[V_17]] : !fir.ref<f80>
^
<stdin>:85:2: note: possible intended match here
%50 = fir.load %21 : !fir.ref<f32>
^
Input file: <stdin>
Check file: /scratch/kli/llvm-project/flang/test/Lower/Intrinsics/ieee_next.f90
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
79: %45 = fir.coordinate_of %37, %44 : (!fir.ref<!fir.array<12xi16>>, i8) -> !fir.ref<i16>
80: %46 = fir.load %45 : !fir.ref<i16>
81: %47 = arith.bitcast %46 : i16 to f16
82: %48 = fir.convert %47 : (f16) -> f32
83: fir.store %48 to %23 : !fir.ref<f32>
84: %49 = fir.load %25 : !fir.ref<f16>
check:45'0 X error: match failed for invalid pattern
check:45'1 undefined variable: V_17
85: %50 = fir.load %21 : !fir.ref<f32>
check:45'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:45'2 ? possible intended match
86: %51 = "llvm.intr.is.fpclass"(%50) <{bit = 3 : i32}> : (f32) -> i1
check:45'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87: %52 = fir.coordinate_of %37, %c2_i8 : (!fir.ref<!fir.array<12xi16>>, i8) -> !fir.ref<i16>
check:45'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88: %53 = fir.load %52 : !fir.ref<i16>
check:45'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89: %54 = arith.bitcast %53 : i16 to f16
check:45'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
90: %55 = arith.select %51, %54, %49 : f16
check:45'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
```
https://github.com/llvm/llvm-project/pull/124966
More information about the flang-commits
mailing list