1 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_30 -mattr=+ptx64 | FileCheck %s
3 define i32 @a() { ret i32 0 }
4 @b = internal alias i32 (), ptr @a
5 @c = internal alias i32 (), ptr @a
7 define void @foo(i32 %0, ptr %1) { ret void }
8 @bar = alias i32 (), ptr @foo
10 define void @noreturn() #0 {
13 @noreturn_alias = alias i32 (), ptr @noreturn
15 attributes #0 = { noreturn }
17 ; CHECK: .visible .func (.param .b32 func_retval0) a()
19 ; CHECK: .visible .func foo(
20 ; CHECK-NEXT: .param .b32 foo_param_0,
21 ; CHECK-NEXT: .param .b64 foo_param_1
24 ; CHECK: .visible .func noreturn()
25 ; CHECK-NEXT: .noreturn
27 ; CHECK: .visible .func (.param .b32 func_retval0) b();
28 ; CHECK-NEXT: .alias b, a;
30 ; CHECK: .visible .func (.param .b32 func_retval0) c();
31 ; CHECK-NEXT: .alias c, a;
33 ; CHECK: .visible .func bar(
34 ; CHECK-NEXT: .param .b32 foo_param_0,
35 ; CHECK-NEXT: .param .b64 foo_param_1
37 ; CHECK-NEXT: .alias bar, foo;
39 ; CHECK: .visible .func noreturn_alias()
40 ; CHECK-NEXT: .noreturn;
41 ; CHECK-NEXT: .alias noreturn_alias, noreturn;