[clang] [CIR] Mul CompoundAssignment support for ComplexType (PR #152354)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 6 11:33:30 PDT 2025


================
@@ -286,3 +286,167 @@ void foo4() {
 // CXX_OGCG: %[[C_IMAG_PTR:.*]] = getelementptr inbounds nuw { i32, i32 }, ptr %[[C_ADDR]], i32 0, i32 1
 // CXX_OGCG: store i32 %[[B_REAL]], ptr %[[C_REAL_PTR]], align 4
 // CXX_OGCG: store i32 %[[B_IMAG]], ptr %[[C_IMAG_PTR]], align 4
+
----------------
andykaylor wrote:

Maybe add test cases for complex += real?

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


More information about the cfe-commits mailing list