[PATCH] D20142: Fix the AllRegs AVX calling convention for 32bit

Amjad Aboud via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 17:01:41 PDT 2016


aaboud created this revision.
aaboud added reviewers: qcolombet, craig.topper.
aaboud added a subscriber: llvm-commits.

32bit AllRegs:
---------------
SSE: xmm0-xmm7
AVX: ymm0-ymm7
AVX512: zmm0-zmm7 + k0-k7

64-bit AllRegs:
----------------
SSE: xmm0-xmm15
AVX: ymm0-ymm15
AVX512: ymm0-ymm31 + k0-k7

This will fix [[ https://llvm.org/bugs/show_bug.cgi?id=26409 | PR26409 ]]

Also removed the ESP/RSP from the AllRegs list, codegen always preserve this register, no need to explicitly save it!

Also fixed dwarf register mapping in 32bit for K0-K7 registers. (I can commit this part separately once it is approved here)

http://reviews.llvm.org/D20142

Files:
  lib/Target/X86/X86CallingConv.td
  lib/Target/X86/X86RegisterInfo.cpp
  lib/Target/X86/X86RegisterInfo.td
  test/CodeGen/X86/x86-interrupt_cc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20142.56837.patch
Type: text/x-patch
Size: 6008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160511/506744d4/attachment.bin>


More information about the llvm-commits mailing list