-
Notifications
You must be signed in to change notification settings - Fork 0
/
crop_70.ptx
86 lines (77 loc) · 1.93 KB
/
crop_70.ptx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: CL-23083092
// Cuda compilation tools, release 9.1, V9.1.85
// Based on LLVM 3.4svn
//
.version 6.1
.target sm_70
.address_size 64
// .globl crop
.visible .entry crop(
.param .u64 crop_param_0,
.param .u32 crop_param_1,
.param .u32 crop_param_2,
.param .u32 crop_param_3,
.param .u64 crop_param_4,
.param .u32 crop_param_5,
.param .u32 crop_param_6,
.param .u32 crop_param_7,
.param .u32 crop_param_8,
.param .u32 crop_param_9,
.param .u32 crop_param_10
)
{
.reg .pred %p<6>;
.reg .f32 %f<2>;
.reg .b32 %r<28>;
.reg .b64 %rd<9>;
ld.param.u64 %rd1, [crop_param_0];
ld.param.u32 %r4, [crop_param_1];
ld.param.u32 %r5, [crop_param_2];
ld.param.u32 %r11, [crop_param_3];
ld.param.u64 %rd2, [crop_param_4];
ld.param.u32 %r6, [crop_param_5];
ld.param.u32 %r7, [crop_param_6];
ld.param.u32 %r8, [crop_param_8];
ld.param.u32 %r9, [crop_param_9];
ld.param.u32 %r10, [crop_param_10];
mov.u32 %r12, %ctaid.x;
mov.u32 %r13, %ntid.x;
mov.u32 %r14, %tid.x;
mad.lo.s32 %r1, %r13, %r12, %r14;
mov.u32 %r15, %ntid.y;
mov.u32 %r16, %ctaid.y;
mov.u32 %r17, %tid.y;
mad.lo.s32 %r2, %r15, %r16, %r17;
mov.u32 %r18, %ntid.z;
mov.u32 %r19, %ctaid.z;
mov.u32 %r20, %tid.z;
mad.lo.s32 %r3, %r18, %r19, %r20;
setp.lt.s32 %p1, %r1, %r4;
setp.lt.s32 %p2, %r2, %r5;
and.pred %p3, %p1, %p2;
setp.lt.s32 %p4, %r3, %r11;
and.pred %p5, %p3, %p4;
@!%p5 bra BB0_2;
bra.uni BB0_1;
BB0_1:
cvta.to.global.u64 %rd3, %rd2;
add.s32 %r21, %r3, %r10;
add.s32 %r22, %r2, %r9;
mad.lo.s32 %r23, %r21, %r7, %r22;
add.s32 %r24, %r1, %r8;
mad.lo.s32 %r25, %r23, %r6, %r24;
mul.wide.s32 %rd4, %r25, 4;
add.s64 %rd5, %rd3, %rd4;
ld.global.nc.f32 %f1, [%rd5];
mad.lo.s32 %r26, %r3, %r5, %r2;
mad.lo.s32 %r27, %r26, %r4, %r1;
cvta.to.global.u64 %rd6, %rd1;
mul.wide.s32 %rd7, %r27, 4;
add.s64 %rd8, %rd6, %rd7;
st.global.f32 [%rd8], %f1;
BB0_2:
ret;
}