[flang-commits] [flang] [flang] handle passing bind(c) derived type by value for ppc64le and powerpc64-aix (PR #128780)

via flang-commits flang-commits at lists.llvm.org
Wed Feb 26 01:19:44 PST 2025


================
@@ -0,0 +1,25 @@
+// Test powerpc64 rewrite of struct passed by value (BIND(C), VALUE derived types).
+//
+// RUN: fir-opt --target-rewrite="target=powerpc64-ibm-aix" %s | FileCheck %s
+// REQUIRES: powerpc-registered-target
----------------
jeanPerier wrote:

Note that you can wrap the IR in the test in a
`module attributes {llvm.data_layout = "<llvm data layout string>"} { ... }` to ensure the test is getting the right data layout for this target instead of the default one.

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


More information about the flang-commits mailing list