Revert to extend i8/i16 return values on Darwin (PR26665)
authorHans Wennborg <hans@hanshq.net>
Thu, 18 Feb 2016 18:17:05 +0000 (18:17 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 18 Feb 2016 18:17:05 +0000 (18:17 +0000)
commit23cdc643b90da422cb5e131e83abddad4c488151
tree2c87bc16f7b91697aa2254e3a838041270295b1a
parent3a16e2a26a66f693e903c9acc47a7a64c8b78094
Revert to extend i8/i16 return values on Darwin (PR26665)

In r260133, LLVM was changed to no longer extend i8/i16 return values,
as it's not required by the ABI. However, code was found in the wild
that relies on the old behaviour on Darwin, so this commit reverts
back to that old behaviour for Darwin.

On other platforms, it's less likely that code would be depending on
the old behaviour, as GCC and MSVC haven't been extending such return
values.

llvm-svn: 261235
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/3addr-16bit.ll
llvm/test/CodeGen/X86/divrem8_ext.ll
llvm/test/CodeGen/X86/return-ext.ll
llvm/test/CodeGen/X86/select.ll