[flang-commits] [flang] cf2e101 - [flang][test] Fix Lower/default-initialization-globals.f90 on SPARC (#103722)
via flang-commits
flang-commits at lists.llvm.org
Thu Aug 15 01:04:53 PDT 2024
Author: Rainer Orth
Date: 2024-08-15T10:04:49+02:00
New Revision: cf2e10150a5a83cece4fb8935202f0d67307b5c8
URL: https://github.com/llvm/llvm-project/commit/cf2e10150a5a83cece4fb8935202f0d67307b5c8
DIFF: https://github.com/llvm/llvm-project/commit/cf2e10150a5a83cece4fb8935202f0d67307b5c8.diff
LOG: [flang][test] Fix Lower/default-initialization-globals.f90 on SPARC (#103722)
`Flang :: Lower/default-initialization-globals.f90` `FAIL`s on SPARC,
both Solaris/sparcv9 and Linux/sparc64.
The failure mode is same as on AIX/PowerPC, so both targets being
big-endian, this patch treats them the same.
Tested on `sparcv9-sun-solaris2.11`, `sparc64-unknown-linux-gnu`,
`amd64-pc-solaris2.11`, and `x86_64-pc-linux-gnu`.
Added:
Modified:
flang/test/Lower/default-initialization-globals.f90
Removed:
################################################################################
diff --git a/flang/test/Lower/default-initialization-globals.f90 b/flang/test/Lower/default-initialization-globals.f90
index 384d1cb763ad67..e9611dab467cba 100644
--- a/flang/test/Lower/default-initialization-globals.f90
+++ b/flang/test/Lower/default-initialization-globals.f90
@@ -1,5 +1,5 @@
! Test default initialization of global variables (static init)
-! RUN: bbc -hlfir=false %s -o - | FileCheck %s --check-prefixes=%if system-aix %{"CHECK","CHECK-BE"%} \
+! RUN: bbc -hlfir=false %s -o - | FileCheck %s --check-prefixes=%if target={{.*-aix.*|sparc.*}} %{"CHECK","CHECK-BE"%} \
! RUN: %else %{"CHECK","CHECK-LE"%}
module tinit
More information about the flang-commits
mailing list