commit | c30654cc96869149fea7b5ac091c2cd3459591e4 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Feb 25 23:10:46 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Feb 25 23:10:46 2007 +0000 |
tree | 48a0bc16b3a1a3d204dc4b8372169c0cc5e53956 | |
parent | df6b57ad4845c2aa0925ec27def313192b1c6ea9 [diff] |
Fix an X86-64 abi bug. We now compile: void foo(short); void bar(unsigned short A) { foo(A); } into: _bar: subq $8, %rsp movswl %di, %edi call _foo addq $8, %rsp ret instead of: _bar: subq $8, %rsp call _foo addq $8, %rsp ret Testcase here: test/CodeGen/X86/x86-64-shortint.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34615 91177308-0d34-0410-b5e6-96231b3b80d8