[LLVMdev] Calling conventions for YMM registers on AVX

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Sun Jan 8 19:19:24 PST 2012


Hi,

> What is the calling conventions for YMM. According to documents I saw till now, the YMMs are scratch and not saved in callee.
> This is also the default behavior of the Intel Compiler.

x86_64 Non-windows targets use the rules defined in the x86_64 abi!

> In X86InstrControl.td the YMMs are not in "defs" set of call.

The XMMs are subregisters of YMMs, and they are in the list, that
should be sufficient for clobbering the YMM ones.

-- 
Bruno Cardoso Lopes
http://www.brunocardoso.cc



More information about the llvm-dev mailing list