blob: 7ac8bce5e45f79669ae04851639c0b8a61a7b91f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
.version 6.5
.target sm_30
.address_size 64
.global .s32 foobar[4] = {1};
.visible .entry global_array(
.param .u64 input,
.param .u64 output
)
{
.reg .u64 in_addr;
.reg .u64 out_addr;
.reg .u32 temp;
mov.u64 in_addr, foobar;
ld.param.u64 out_addr, [output];
ld.global.u32 temp, [in_addr];
st.global.u32 [out_addr], temp;
ret;
}
|