[flang-commits] [flang] [flang] Modify lto testcase for AIX (PR #74496)
via flang-commits
flang-commits at lists.llvm.org
Wed Dec 6 06:00:12 PST 2023
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/74496
>From ca9bb5a76eaf012f4d8b4f553665c711a9cca43b Mon Sep 17 00:00:00 2001
From: Mark Danial <madanial at dixon.rtp.raleigh.ibm.com>
Date: Tue, 5 Dec 2023 11:45:05 -0500
Subject: [PATCH 1/2] [flang] Modify lto testcase for AIX
---
flang/test/Driver/lto-flags.f90 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flang/test/Driver/lto-flags.f90 b/flang/test/Driver/lto-flags.f90
index 2b3b08fbcc711..d0eeca2cdc711 100644
--- a/flang/test/Driver/lto-flags.f90
+++ b/flang/test/Driver/lto-flags.f90
@@ -11,7 +11,7 @@
! Also check linker plugin opt for Thin LTO
! RUN: %flang -### -flto=thin %s 2>&1 | FileCheck %s \
-! RUN: --check-prefixes=%if system-darwin %{THIN-LTO-ALL%} \
+! RUN: --check-prefixes=%if system-darwin %{THIN-LTO-ALL%}%if system-aix %{THIN-LTO-ALL,THIN-LTO-LINKER-PLUGIN-AIX%} \
! RUN: %else %{THIN-LTO-ALL,THIN-LTO-LINKER-PLUGIN%}
! RUN: not %flang -### -S -flto=somelto %s 2>&1 | FileCheck %s --check-prefix=ERROR
@@ -31,5 +31,6 @@
! THIN-LTO-ALL: "-fc1"
! THIN-LTO-ALL-SAME: "-flto=thin"
! THIN-LTO-LINKER-PLUGIN: "-plugin-opt=thinlto"
+! THIN-LTO-LINKER-PLUGIN-AIX: "-bdbg:thinlto"
! ERROR: error: unsupported argument 'somelto' to option '-flto=
>From 51bd02286f9fb385127d3b58f06ceab5cf72a620 Mon Sep 17 00:00:00 2001
From: Mark Danial <madanial at dixon.rtp.raleigh.ibm.com>
Date: Wed, 6 Dec 2023 08:57:29 -0500
Subject: [PATCH 2/2] Add RUN line for ppc64 AIX
---
flang/test/Driver/lto-flags.f90 | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/flang/test/Driver/lto-flags.f90 b/flang/test/Driver/lto-flags.f90
index d0eeca2cdc711..a51febc700969 100644
--- a/flang/test/Driver/lto-flags.f90
+++ b/flang/test/Driver/lto-flags.f90
@@ -11,9 +11,12 @@
! Also check linker plugin opt for Thin LTO
! RUN: %flang -### -flto=thin %s 2>&1 | FileCheck %s \
-! RUN: --check-prefixes=%if system-darwin %{THIN-LTO-ALL%}%if system-aix %{THIN-LTO-ALL,THIN-LTO-LINKER-PLUGIN-AIX%} \
+! RUN: --check-prefixes=%if system-darwin || system-aix %{THIN-LTO-ALL%} \
! RUN: %else %{THIN-LTO-ALL,THIN-LTO-LINKER-PLUGIN%}
+! RUN: %flang -### -flto=thin --target=powerpc64-aix %s 2>&1 | FileCheck %s \
+! RUN: --check-prefix THIN-LTO-LINKER-AIX
+
! RUN: not %flang -### -S -flto=somelto %s 2>&1 | FileCheck %s --check-prefix=ERROR
! FC1 tests. Check that it does not crash.
@@ -31,6 +34,6 @@
! THIN-LTO-ALL: "-fc1"
! THIN-LTO-ALL-SAME: "-flto=thin"
! THIN-LTO-LINKER-PLUGIN: "-plugin-opt=thinlto"
-! THIN-LTO-LINKER-PLUGIN-AIX: "-bdbg:thinlto"
+! THIN-LTO-LINKER-AIX: "-bdbg:thinlto"
! ERROR: error: unsupported argument 'somelto' to option '-flto=
More information about the flang-commits
mailing list