[flang-commits] [flang] [flang][SystemZ] Fix test failures on s390x for target alignment, endianness and vectorizer remarks (PR #230565)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Tue Oct 13 08:08:03 PDT 2026


================
@@ -1,14 +1,14 @@
 ! Test lowering complex division to llvm ir according to options
 
 ! REQUIRES: flang-supports-f128-math
-! RUN: %flang -fcomplex-arithmetic=improved -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,IMPRVD
-! RUN: %flang -fcomplex-arithmetic=basic -S -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,BASIC
+! RUN: %flang -fcomplex-arithmetic=improved -S -emit-llvm %s -o - | FileCheck %s -DF128_ALIGN=%if target=s390x{{.*}} %{8%} %else %{16%} --check-prefixes=CHECK,IMPRVD
----------------
tarunprabhu wrote:

You could consider using 

```fortran
! RUN: export FILECHECK_OPTS="-DF128_ALIGN=%if ...`
```

just once at the start of the file if all the run lines will need `F128_ALIGN` defined. That way, we can avoid repeating the -D in each FileCheck invocation.

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


More information about the flang-commits mailing list