26 lines · plain
1; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 | FileCheck %s2; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}3 4; Check that parameter names we generate in the function signature and the name5; we use when we refer to the parameter in the function body do match.6 7; CHECK: .func (.param .b32 func_retval0) __unnamed_1(8; CHECK-NEXT: .param .b32 __unnamed_1_param_09; CHECK: ld.param.b32 {{%r[0-9]+}}, [__unnamed_1_param_0];10 11define internal i32 @0(i32 %a) {12entry:13 %r = add i32 %a, 114 ret i32 %r15}16 17; CHECK: .func (.param .b32 func_retval0) __unnamed_2(18; CHECK-NEXT: .param .b32 __unnamed_2_param_019; CHECK: ld.param.b32 {{%r[0-9]+}}, [__unnamed_2_param_0];20 21define internal i32 @1(i32 %a) {22entry:23 %r = add i32 %a, 124 ret i32 %r25}26