dpaoliello wrote: > Sorry, just spotted an issue: I don't think you're emitting the operations in > the correct order. You need to emit both arguments before you read the > register or load the value. > > If you have some non-trivial operation like a call in one of the arguments, > you don't want that call to happen in the middle of the operation. MSVC > appears to emit the arguments before touching x18.
Done, and fixed the read/write x18 intrinsics as well. https://github.com/llvm/llvm-project/pull/117752 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits