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

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Tue Dec 5 12:29:23 PST 2023


================
@@ -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%}
----------------
luporl wrote:

```suggestion
! RUN:        --check-prefixes=THIN-LTO-ALL%if system-aix %{,THIN-LTO-LINKER-PLUGIN-AIX%} \
! RUN:          %else %{ %if !system-darwin %{,THIN-LTO-LINKER-PLUGIN%} %}
```

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


More information about the flang-commits mailing list