diff options
author | Justin Holewinski <justin.holewinski@gmail.com> | 2011-09-23 16:48:41 +0000 |
---|---|---|
committer | Justin Holewinski <justin.holewinski@gmail.com> | 2011-09-23 16:48:41 +0000 |
commit | 75d809599b52dc13c41b5b7afebc5b4f078395b3 (patch) | |
tree | 256347d6590d5dc2d5ef450d58384ef012f90338 /test | |
parent | 0353dab90ec502b02cbf2cee845e07d51627248b (diff) |
PTX: Handle function call return values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/PTX/simple-call.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/PTX/simple-call.ll b/test/CodeGen/PTX/simple-call.ll index 1e980655d3e..77ea29eae8b 100644 --- a/test/CodeGen/PTX/simple-call.ll +++ b/test/CodeGen/PTX/simple-call.ll @@ -12,3 +12,16 @@ define ptx_device float @test_call(float %x, float %y) { call void @test_add(float %a, float %y) ret float %a } + +define ptx_device float @test_compute(float %x, float %y) { +; CHECK: ret; + %z = fadd float %x, %y + ret float %z +} + +define ptx_device float @test_call_compute(float %x, float %y) { +; CHECK: call.uni (__localparam_{{[0-9]+}}), test_compute, (__localparam_{{[0-9]+}}, __localparam_{{[0-9]+}}) + %z = call float @test_compute(float %x, float %y) + ret float %z +} + |