[NVPTX] Calling conventions fix
authorJustin Holewinski <jholewinski@nvidia.com>
Fri, 28 Jun 2013 17:58:10 +0000 (17:58 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Fri, 28 Jun 2013 17:58:10 +0000 (17:58 +0000)
commite04e4bdf71ec5fd79855841e53199758e4aa4abd
treebd32e76351b3d4bf433be6a32602b330944336e0
parentdc372df63b23884b9267c46480f31118cb2117c5
[NVPTX] Calling conventions fix

Fix ABI handling for function
returning bool -- use st.param.b32 to return the value
and use ld.param.b32 in caller to load the return value.

llvm-svn: 185177
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
llvm/test/CodeGen/NVPTX/compare-int.ll
llvm/test/CodeGen/NVPTX/convert-int-sm20.ll
llvm/test/CodeGen/NVPTX/i8-param.ll [new file with mode: 0644]
llvm/test/CodeGen/NVPTX/ld-addrspace.ll
llvm/test/CodeGen/NVPTX/ld-generic.ll