[PATCH] [mips] For N32/N64, structs must be passed in the upper bits of a register.

Daniel Sanders daniel.sanders at imgtec.com
Fri Oct 24 03:21:31 PDT 2014


Hi vmedic,

Most structs were fixed by r218451 but those of between >32-bits and
<64-bits remained broken since they were not marked with [ASZ]ExtUpper.
This patch fixes the remaining cases by using
CCPromoteToUpperBitsInType<i64> on i64's in addition to i32 and smaller.

http://reviews.llvm.org/D5963

Files:
  lib/Target/Mips/MipsCallingConv.td
  test/CodeGen/Mips/cconv/return-struct.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5963.15391.patch
Type: text/x-patch
Size: 4005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141024/b4734138/attachment.bin>


More information about the llvm-commits mailing list