craig.topper added a comment. In fact in 32-bit mode x86. You'll get the return value passed by pointer with the sret attribute for all 3 functions. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65457/new/ https://reviews.llvm.org/D65457