[flang-commits] [flang] e9b2a07 - [flang] Modify lto testcase for AIX (#74496)

via flang-commits flang-commits at lists.llvm.org
Mon Dec 11 15:34:57 PST 2023


Author: madanial0
Date: 2023-12-11T18:34:53-05:00
New Revision: e9b2a0722b9e9035e08c3f82925622ee6f932cd2

URL: https://github.com/llvm/llvm-project/commit/e9b2a0722b9e9035e08c3f82925622ee6f932cd2
DIFF: https://github.com/llvm/llvm-project/commit/e9b2a0722b9e9035e08c3f82925622ee6f932cd2.diff

LOG: [flang] Modify lto testcase for AIX (#74496)

Change the lto-flags test case to check for `-bdbg:thinlto` on AIX

---------

Co-authored-by: Mark Danial <mark.danial at ibm.com>

Added: 
    

Modified: 
    flang/test/Driver/lto-flags.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/lto-flags.f90 b/flang/test/Driver/lto-flags.f90
index 2b3b08fbcc711..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%} \
+! 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,5 +34,6 @@
 ! THIN-LTO-ALL: "-fc1"
 ! THIN-LTO-ALL-SAME: "-flto=thin"
 ! THIN-LTO-LINKER-PLUGIN: "-plugin-opt=thinlto"
+! THIN-LTO-LINKER-AIX: "-bdbg:thinlto"
 
 ! ERROR: error: unsupported argument 'somelto' to option '-flto=


        


More information about the flang-commits mailing list