[mips][PR19612] Fix va_arg for big-endian mode.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 1 Aug 2014 09:17:39 +0000 (09:17 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 1 Aug 2014 09:17:39 +0000 (09:17 +0000)
commit0a15e20ba2dd11dfbc3a38418047cea19674f356
tree49e45f3670892ae1d14a130ab28719f975a54827
parent12f7582cf0c8b47a3e2245113007b5fe6f4828ed
[mips][PR19612] Fix va_arg for big-endian mode.

Summary:
Big-endian mode was not correctly adjusting the offset for types smaller
than an ABI slot.

Fixes PR19612

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: sstankovic, llvm-commits

Differential Revision: http://reviews.llvm.org/D4556

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214493 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsISelLowering.h
test/CodeGen/Mips/cconv/arguments-hard-float-varargs.ll
test/CodeGen/Mips/cconv/arguments-varargs.ll [new file with mode: 0644]