interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / om / gpu / dsv41 / mma / mma_fp4_s2_tile.om

191 lines · 6736 bytes Raw Blame History
1note Fixed SM121a instruction stream calibrated against the included PTX oracle.
2om2
3fn ins a ulong b ulong to void
4buf = new uchar 16 0
5for i ulong 8
6put buf i uchar and shr a mul i 8 255
7put buf add 8 i uchar and shr b mul i 8 255
8end
9if ne write 1 buf 0 16 16
10exit 4
11end
12end
13fn main to int
14note LDC R1, c[0x0][0x37c] ;
15ins 0x0000df00ff017b82 0x000fe20000000800
16note S2R R12, SR_LANEID ;
17ins 0x00000000000c7919 0x000e2e0000000000
18note LDC R20, c[0x0][0x3a8] ;
19ins 0x0000ea00ff147b82 0x000e620000000800
20note LDCU.128 UR8, c[0x0][0x380] ;
21ins 0x00007000ff0877ac 0x000ea20008000c00
22note MOV R23, RZ ;
23ins 0x000000ff00177202 0x000fe20000000f00
24note S2R R0, SR_CTAID.X ;
25ins 0x0000000000007919 0x000ee20000002500
26note CS2R R6, SRZ ;
27ins 0x0000000000067805 0x000fe2000001ff00
28note LDCU.128 UR4, c[0x0][0x390] ;
29ins 0x00007200ff0477ac 0x000f220008000c00
30note S2R R2, SR_CTAID.Y ;
31ins 0x0000000000027919 0x000f620000002600
32note SHF.R.U32.HI R18, RZ, 0x5, R20 ;
33ins 0x00000005ff127819 0x002fc40000011614
34note SHF.R.U32.HI R13, RZ, 0x2, R12 ;
35ins 0x00000002ff0d7819 0x001fe4000001160c
36note LOP3.LUT R12, R12, 0x3, RZ, 0xc0, !PT ;
37ins 0x000000030c0c7812 0x000fc600078ec0ff
38note IMAD R3, R0, 0x8, R13.reuse ;
39ins 0x0000000800037824 0x108fe400078e020d
40note IMAD R13, R2, 0x10, R13 ;
41ins 0x00000010020d7824 0x020fe200078e020d
42note LOP3.LUT R2, R12.reuse, 0x1, RZ, 0xc0, !PT ;
43ins 0x000000010c027812 0x040fe200078ec0ff
44note IMAD R5, R3, R20.reuse, RZ ;
45ins 0x0000001403057224 0x080fe400078e02ff
46note IMAD R17, R13, R20, RZ ;
47ins 0x000000140d117224 0x000fe400078e02ff
48note IMAD R5, R12.reuse, 0x4, R5 ;
49ins 0x000000040c057824 0x040fe400078e0205
50note IMAD R16, R12, 0x4, R17 ;
51ins 0x000000040c107824 0x000fe200078e0211
52note MOV R17, RZ ;
53ins 0x000000ff00117202 0x000fe20000000f00
54note IMAD R15, R2, 0x8, R13 ;
55ins 0x00000008020f7824 0x000fe200078e020d
56note SHF.R.U32.HI R22, RZ, 0x1, R5 ;
57ins 0x00000001ff167819 0x000fe20000011605
58note CS2R R4, SRZ ;
59ins 0x0000000000047805 0x000fe2000001ff00
60note IMAD.WIDE.U32 R2, R3, R18, UR6 ;
61ins 0x0000000603027e25 0x010fe2000f8e0012
62note IADD.64 R16, R16, UR8 ;
63ins 0x0000000810107c35 0x004fc4000f8e0200
64note IADD.64 R22, R22, UR10 ;
65ins 0x0000000a16167c35 0x000fe4000f8e0200
66note IMAD.WIDE.U32 R14, R18, R15, UR4 ;
67ins 0x00000004120e7e25 0x000fe2000f8e000f
68note LDCU.64 UR6, c[0x0][0x358] ;
69ins 0x00006b00ff0677ac 0x000e260008000a00
70note IMAD.WIDE.U32 R20, R20, 0x8, R16 ;
71ins 0x0000000814147825 0x000fe200078e0010
72note UMOV UR4, URZ ;
73ins 0x000000ff00047c82 0x000fcc0008000000
74note LDG.E.U16 R25, desc[UR6][R22.64] ;
75ins 0x0000000616197981 0x001ea8000c1e1500
76note LDG.E.U16 R28, desc[UR6][R22.64+0x8] ;
77ins 0x00000806161c7981 0x0000e8000c1e1500
78note LDG.E.U8 R24, desc[UR6][R14.64] ;
79ins 0x000000060e187981 0x000f28000c1e1100
80note LDG.E.U8 R19, desc[UR6][R2.64] ;
81ins 0x0000000602137981 0x000f28000c1e1100
82note LDG.E R9, desc[UR6][R20.64] ;
83ins 0x0000000614097981 0x000f28000c1e1900
84note LDG.E R11, desc[UR6][R20.64+0x10] ;
85ins 0x00001006140b7981 0x000328000c1e1900
86note LDG.E R8, desc[UR6][R16.64] ;
87ins 0x0000000610087981 0x000f28000c1e1900
88note LDG.E R10, desc[UR6][R16.64+0x10] ;
89ins 0x00001006100a7981 0x000b22000c1e1900
90note UIADD3 UR4, UPT, UPT, UR4, 0x1, URZ ;
91ins 0x0000000104047890 0x000fe2000fffe0ff
92note IADD.64 R22, R22, 0x10 ;
93ins 0x0000001016167835 0x001fc400078e0200
94note IADD.64 R20, R20, 0x20 ;
95ins 0x0000002014147835 0x002fe400078e0200
96note IADD.64 R14, R14, 0x1 ;
97ins 0x000000010e0e7835 0x000fe400078e0200
98note ISETP.LE.U32.AND P0, PT, R18, UR4, PT ;
99ins 0x0000000412007c0c 0x000fe2000bf03070
100note IADD.64 R2, R2, 0x1 ;
101ins 0x0000000102027835 0x000fe400078e0200
102note IADD.64 R16, R16, 0x20 ;
103ins 0x0000002010107835 0x020fc600078e0200
104note LOP3.LUT R26, R25.reuse, 0xf, RZ, 0xc0, !PT ;
105ins 0x0000000f191a7812 0x044fe400078ec0ff
106note LOP3.LUT R27, R25, 0xf0, RZ, 0xc0, !PT ;
107ins 0x000000f0191b7812 0x000fe400078ec0ff
108note LOP3.LUT R29, R28.reuse, 0xf, RZ, 0xc0, !PT ;
109ins 0x0000000f1c1d7812 0x048fe400078ec0ff
110note LOP3.LUT R30, R28, 0xf0, RZ, 0xc0, !PT ;
111ins 0x000000f01c1e7812 0x000fe200078ec0ff
112note IMAD R26, R27, 0x10, R26 ;
113ins 0x000000101b1a7824 0x000fe200078e021a
114note LOP3.LUT R27, R25.reuse, 0xf00, RZ, 0xc0, !PT ;
115ins 0x00000f00191b7812 0x040fe400078ec0ff
116note LOP3.LUT R25, R25, 0xf000, RZ, 0xc0, !PT ;
117ins 0x0000f00019197812 0x000fe200078ec0ff
118note IMAD R29, R30, 0x10, R29 ;
119ins 0x000000101e1d7824 0x000fe200078e021d
120note LOP3.LUT R30, R28.reuse, 0xf00, RZ, 0xc0, !PT ;
121ins 0x00000f001c1e7812 0x040fe200078ec0ff
122note IMAD R26, R27, 0x100, R26 ;
123ins 0x000001001b1a7824 0x000fe200078e021a
124note LOP3.LUT R28, R28, 0xf000, RZ, 0xc0, !PT ;
125ins 0x0000f0001c1c7812 0x000fc600078ec0ff
126note IMAD R29, R30, 0x100, R29 ;
127ins 0x000001001e1d7824 0x000fe400078e021d
128note IMAD R25, R25, 0x1000, R26 ;
129ins 0x0000100019197824 0x000fe400078e021a
130note IMAD R27, R28, 0x1000, R29 ;
131ins 0x000010001c1b7824 0x000fe400078e021d
132note IMAD.SHL.U32 R26, R25, 0x4, RZ ;
133ins 0x00000004191a7824 0x000fe400078e00ff
134note IMAD.SHL.U32 R27, R27, 0x4, RZ ;
135ins 0x000000041b1b7824 0x000fce00078e00ff
136note QMMA.SF.16832.F32.E4M3.E2M1.E8 R4, R8, R26, R4, R24, R19, URZ ;
137ins 0x7130181a0804747a 0x010fe2000020be04
138note NOP ;
139ins 0x0000000000007918 0x000fda0000000000
140note @!P0 BRA 0x1e0 ;
141ins 0xfffffffc00788947 0x000fde000383ffff
142note LDC R11, c[0x0][0x370] ;
143ins 0x0000dc00ff0b7b82 0x000e300000000800
144note LDC.64 R2, c[0x0][0x3a0] ;
145ins 0x0000e800ff027b82 0x000e620000000a00
146note IMAD R13, R13, R11, R0 ;
147ins 0x0000000b0d0d7224 0x001fc800078e0200
148note IMAD R9, R13, 0x4, R12 ;
149ins 0x000000040d097824 0x000fc800078e020c
150note IMAD.SHL.U32 R9, R9, 0x2, RZ ;
151ins 0x0000000209097824 0x000fc800078e00ff
152note IMAD.WIDE.U32 R2, R9, 0x4, R2 ;
153ins 0x0000000409027825 0x002fca00078e0002
154note STG.E.64 desc[UR6][R2.64], R4 ;
155ins 0x0000000402007986 0x000fe2000c101b06
156note IMAD.WIDE.U32 R8, R11, 0x100, R2 ;
157ins 0x000001000b087825 0x000fca00078e0002
158note STG.E.64 desc[UR6][R8.64], R6 ;
159ins 0x0000000608007986 0x000fe2000c101b06
160note EXIT ;
161ins 0x000000000000794d 0x000fea0003800000
162note BRA 0x4a0;
163ins 0xfffffffc00fc7947 0x000fc0000383ffff
164note NOP;
165ins 0x0000000000007918 0x000fc00000000000
166note NOP;
167ins 0x0000000000007918 0x000fc00000000000
168note NOP;
169ins 0x0000000000007918 0x000fc00000000000
170note NOP;
171ins 0x0000000000007918 0x000fc00000000000
172note NOP;
173ins 0x0000000000007918 0x000fc00000000000
174note NOP;
175ins 0x0000000000007918 0x000fc00000000000
176note NOP;
177ins 0x0000000000007918 0x000fc00000000000
178note NOP;
179ins 0x0000000000007918 0x000fc00000000000
180note NOP;
181ins 0x0000000000007918 0x000fc00000000000
182note NOP;
183ins 0x0000000000007918 0x000fc00000000000
184note NOP;
185ins 0x0000000000007918 0x000fc00000000000
186note NOP;
187ins 0x0000000000007918 0x000fc00000000000
188note NOP;
189ins 0x0000000000007918 0x000fc00000000000
190ret 0
191end