[flang-commits] [flang] [flang][NFC] do not hard code KIND 10 and 16 in lowering tests (PR #124966)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Jan 30 02:49:25 PST 2025
================
@@ -1,43 +1,18 @@
-! RUN: bbc %s -o - | tco | FileCheck %s
-
-! CHECK-LABEL: define void @_QQmain()
-program p
- ! CHECK-DAG: alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
- ! CHECK-DAG: alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
- ! CHECK-DAG: alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
- ! CHECK-DAG: alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
- ! CHECK-DAG: alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
- ! CHECK-DAG: alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
- ! CHECK-DAG: alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
- ! CHECK-DAG: alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
- ! CHECK-DAG: alloca { x86_fp80, x86_fp80 }, i64 1, align 16
- ! CHECK-DAG: alloca { fp128, fp128 }, i64 1, align 16
- ! CHECK-DAG: alloca { half, half }, i64 1, align 8
- ! CHECK-DAG: alloca { bfloat, bfloat }, i64 1, align 8
- ! CHECK-DAG: alloca { float, float }, i64 1, align 8
- ! CHECK-DAG: alloca { double, double }, i64 1, align 8
- ! CHECK-DAG: alloca x86_fp80, i64 1, align 16
- ! CHECK-DAG: alloca fp128, i64 1, align 16
- ! CHECK-DAG: alloca half, i64 1, align 2
- ! CHECK-DAG: alloca bfloat, i64 1, align 2
- ! CHECK-DAG: alloca float, i64 1, align 4
- ! CHECK-DAG: alloca double, i64 1, align 8
+! RUN: bbc %s -o - | tco | FileCheck %s --check-prefixes=CHECK%if target=x86_64{{.*}} %{,CHECK-KIND10%}%if flang-supports-f128-math %{,CHECK-KIND16%}
+! CHECK-LABEL: test_reals
----------------
tblah wrote:
```suggestion
! CHECK-LABEL: define void {{.*}}test_reals
```
The problem here was that this was matching the mangled name for a global constant for `in`. I'm not sure why this didn't show up on x86 tests.
https://github.com/llvm/llvm-project/pull/124966
More information about the flang-commits
mailing list