OSDN Git Service

Fix byval arguments in the fastcc calling convention. The fastcc convention
authorDan Gohman <gohman@apple.com>
Wed, 3 Dec 2008 01:28:04 +0000 (01:28 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 3 Dec 2008 01:28:04 +0000 (01:28 +0000)
commite4300e271afd663ada8b808c6d0c4878fb0256ef
tree34a70fedf0b7a4b0710999472e2d5c50333b032e
parent7f9b35200bf442c6d8978213f6117fe0d712325e
Fix byval arguments in the fastcc calling convention. The fastcc convention
delegates to the regular x86-32 convention which handles byval, but only
after it handles a few cases, and it's necessary to handle byval before
handling those cases. This fixes PR3122 (and rdar://6400815), llvm-gcc
miscompiling LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60453 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86CallingConv.td
test/CodeGen/X86/fastcc-byval.ll [new file with mode: 0644]
test/CodeGen/X86/tailcallbyval.ll