> On Dec 17, 2015, at 3:44 PM, Joe Groff via swift-dev <[email protected]> > wrote: > > >> On Dec 17, 2015, at 3:43 PM, Greg Parker <[email protected]> wrote: >> >> >>> On Dec 17, 2015, at 3:34 PM, Joe Groff via swift-dev <[email protected]> >>> wrote: >>> >>> On ARMv7 and ARM64, the argument and return register sets are the same >> >> Nit: True on arm64. Not true on armv7; the GPR parameters are r0-r3 but GPR >> return is r0-r1. > > True, I meant that one sequence is a prefix of the other. If you pass the > first argument in and return it out via {r0, r1} the operations could be done > in-place.
Also, Swift functions can have their own ABIs. Extending the result registers to use r0-r3 on ARM32 seems perfectly reasonable. -Chris _______________________________________________ swift-dev mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-dev
