[flang] Complex numbers in function arguments on Windows
authorMarkus Mützel <markus.muetzel@gmx.de>
Mon, 17 Apr 2023 16:15:54 +0000 (09:15 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Mon, 17 Apr 2023 18:02:26 +0000 (11:02 -0700)
commit774703ec08f62d702d40e1f97cd35ae5f732c544
treee655374188aecf4bfaed70ab25544f03ea6b45be
parentee68f612ba682ddb911c5621e63df56039ec5824
[flang] Complex numbers in function arguments on Windows

Function arguments or return values that are complex floating point values
aren't correctly lowered for Windows x86 32-bit and 64-bit targets.
See: https://github.com/llvm/llvm-project/issues/61976

Add targets that are specific for these platforms and OS.

With thanks to @mstorsjo for pointing out the fix.

Reviewed By: vzakhari

Differential Revision: https://reviews.llvm.org/D147768
flang/lib/Optimizer/CodeGen/Target.cpp
flang/test/Fir/target-rewrite-complex.fir