1 ; RUN: llc < %s -march=ptx32 -mattr=sm20 | FileCheck %s 2 3 define ptx_device void @test_add(float %x, float %y) { 4 ; CHECK: ret; 5 %z = fadd float %x, %y 6 ret void 7 } 8 9 define ptx_device float @test_call(float %x, float %y) { 10 %a = fadd float %x, %y 11 ; CHECK: call.uni test_add, (__localparam_{{[0-9]+}}, __localparam_{{[0-9]+}}); 12 call void @test_add(float %a, float %y) 13 ret float %a 14 } 15 16 define ptx_device float @test_compute(float %x, float %y) { 17 ; CHECK: ret; 18 %z = fadd float %x, %y 19 ret float %z 20 } 21 22 define ptx_device float @test_call_compute(float %x, float %y) { 23 ; CHECK: call.uni (__localparam_{{[0-9]+}}), test_compute, (__localparam_{{[0-9]+}}, __localparam_{{[0-9]+}}) 24 %z = call float @test_compute(float %x, float %y) 25 ret float %z 26 } 27 28