OSDN Git Service

[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)
commitac78a0645ddd2046fb66237ba4cfadffa2d367d7
treed81d3be9c6424ecc5391ef95e857f0503f62cf57
parent331ba2739d484b670000bd59b170fe1e993786d2
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185177 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXISelLowering.cpp
test/CodeGen/NVPTX/compare-int.ll
test/CodeGen/NVPTX/convert-int-sm20.ll
test/CodeGen/NVPTX/i8-param.ll [new file with mode: 0644]
test/CodeGen/NVPTX/ld-addrspace.ll
test/CodeGen/NVPTX/ld-generic.ll