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
omega-mv / om / gpu / dsv41 / mma / mma_fp4_s2.om
| 1 | note Fixed SM121a instruction stream calibrated against the included PTX oracle. |
| 2 | om2 |
| 3 | fn ins a ulong b ulong to void |
| 4 | buf = new uchar 16 0 |
| 5 | for i ulong 8 |
| 6 | put buf i uchar and shr a mul i 8 255 |
| 7 | put buf add 8 i uchar and shr b mul i 8 255 |
| 8 | end |
| 9 | if ne write 1 buf 0 16 16 |
| 10 | exit 4 |
| 11 | end |
| 12 | end |
| 13 | fn main to int |
| 14 | note LDC R1, c[0x0][0x37c] ; |
| 15 | ins 0x0000df00ff017b82 0x000fe20000000800 |
| 16 | note S2R R12, SR_LANEID ; |
| 17 | ins 0x00000000000c7919 0x000e2e0000000000 |
| 18 | note LDC R16, c[0x0][0x3a8] ; |
| 19 | ins 0x0000ea00ff107b82 0x000e620000000800 |
| 20 | note LDCU.128 UR8, c[0x0][0x380] ; |
| 21 | ins 0x00007000ff0877ac 0x000ea20008000c00 |
| 22 | note MOV R19, RZ ; |
| 23 | ins 0x000000ff00137202 0x000fe20000000f00 |
| 24 | note S2R R0, SR_CTAID.X ; |
| 25 | ins 0x0000000000007919 0x000ee20000002500 |
| 26 | note LDCU.64 UR6, c[0x0][0x358] ; |
| 27 | ins 0x00006b00ff0677ac 0x000f280008000a00 |
| 28 | note S2UR UR5, SR_CTAID.Y ; |
| 29 | ins 0x00000000000579c3 0x000e620000002600 |
| 30 | note UMOV UR4, URZ ; |
| 31 | ins 0x000000ff00047c82 0x000fce0008000000 |
| 32 | note LDC.64 R2, c[0x0][0x398] ; |
| 33 | ins 0x0000e600ff027b82 0x000f700000000a00 |
| 34 | note LDC.64 R20, c[0x0][0x390] ; |
| 35 | ins 0x0000e400ff147b82 0x000f220000000a00 |
| 36 | note SHF.R.U32.HI R13, RZ, 0x2, R12 ; |
| 37 | ins 0x00000002ff0d7819 0x001fe2000001160c |
| 38 | note IMAD R15, R16, UR5, RZ ; |
| 39 | ins 0x00000005100f7c24 0x002fe2000f8e02ff |
| 40 | note LOP3.LUT R12, R12, 0x3, RZ, 0xc0, !PT ; |
| 41 | ins 0x000000030c0c7812 0x000fc600078ec0ff |
| 42 | note IMAD R5, R0, 0x8, R13 ; |
| 43 | ins 0x0000000800057824 0x008fe400078e020d |
| 44 | note IMAD R14, R12, 0x4, R15 ; |
| 45 | ins 0x000000040c0e7824 0x000fe200078e020f |
| 46 | note MOV R15, RZ ; |
| 47 | ins 0x000000ff000f7202 0x000fe20000000f00 |
| 48 | note IMAD R7, R5, R16, RZ ; |
| 49 | ins 0x0000001005077224 0x000fe200078e02ff |
| 50 | note SHF.R.U32.HI R16, RZ, 0x5, R16 ; |
| 51 | ins 0x00000005ff107819 0x000fc60000011610 |
| 52 | note IMAD R7, R12, 0x4, R7 ; |
| 53 | ins 0x000000040c077824 0x000fe200078e0207 |
| 54 | note IADD.64 R14, R14, UR8 ; |
| 55 | ins 0x000000080e0e7c35 0x004fe4000f8e0200 |
| 56 | note IMAD.WIDE.U32 R2, R5, R16, R2 ; |
| 57 | ins 0x0000001005027225 0x020fe200078e0002 |
| 58 | note CS2R R4, SRZ ; |
| 59 | ins 0x0000000000047805 0x000fe2000001ff00 |
| 60 | note SHF.R.U32.HI R18, RZ, 0x1, R7 ; |
| 61 | ins 0x00000001ff127819 0x000fe20000011607 |
| 62 | note CS2R R6, SRZ ; |
| 63 | ins 0x0000000000067805 0x000fe2000001ff00 |
| 64 | note IMAD.WIDE.U32 R20, R16, UR5, R20 ; |
| 65 | ins 0x0000000510147c25 0x010fc6000f8e0014 |
| 66 | note IADD.64 R18, R18, UR10 ; |
| 67 | ins 0x0000000a12127c35 0x000fd0000f8e0200 |
| 68 | note LDG.E.U16 R9, desc[UR6][R18.64] ; |
| 69 | ins 0x0000000612097981 0x000ea8000c1e1500 |
| 70 | note LDG.E.U16 R23, desc[UR6][R18.64+0x8] ; |
| 71 | ins 0x0000080612177981 0x0000e8000c1e1500 |
| 72 | note LDG.E R8, desc[UR6][R14.64] ; |
| 73 | ins 0x000000060e087981 0x000f28000c1e1900 |
| 74 | note LDG.E R10, desc[UR6][R14.64+0x10] ; |
| 75 | ins 0x000010060e0a7981 0x000368000c1e1900 |
| 76 | note LDG.E.U8 R17, desc[UR6][R20.64] ; |
| 77 | ins 0x0000000614117981 0x000368000c1e1100 |
| 78 | note LDG.E.U8 R22, desc[UR6][R2.64] ; |
| 79 | ins 0x0000000602167981 0x000362000c1e1100 |
| 80 | note UIADD3 UR4, UPT, UPT, UR4, 0x1, URZ ; |
| 81 | ins 0x0000000104047890 0x000fe2000fffe0ff |
| 82 | note IADD.64 R18, R18, 0x10 ; |
| 83 | ins 0x0000001012127835 0x001fc400078e0200 |
| 84 | note IADD.64 R14, R14, 0x20 ; |
| 85 | ins 0x000000200e0e7835 0x002fe400078e0200 |
| 86 | note IADD.64 R20, R20, 0x1 ; |
| 87 | ins 0x0000000114147835 0x000fe400078e0200 |
| 88 | note ISETP.LE.U32.AND P0, PT, R16, UR4, PT ; |
| 89 | ins 0x0000000410007c0c 0x000fe2000bf03070 |
| 90 | note IADD.64 R2, R2, 0x1 ; |
| 91 | ins 0x0000000102027835 0x000fc600078e0200 |
| 92 | note LOP3.LUT R11, R9.reuse, 0xf, RZ, 0xc0, !PT ; |
| 93 | ins 0x0000000f090b7812 0x044fe400078ec0ff |
| 94 | note LOP3.LUT R24, R9, 0xf0, RZ, 0xc0, !PT ; |
| 95 | ins 0x000000f009187812 0x000fe400078ec0ff |
| 96 | note LOP3.LUT R25, R23.reuse, 0xf, RZ, 0xc0, !PT ; |
| 97 | ins 0x0000000f17197812 0x048fe400078ec0ff |
| 98 | note LOP3.LUT R26, R23, 0xf0, RZ, 0xc0, !PT ; |
| 99 | ins 0x000000f0171a7812 0x000fe200078ec0ff |
| 100 | note IMAD R11, R24, 0x10, R11 ; |
| 101 | ins 0x00000010180b7824 0x000fe200078e020b |
| 102 | note LOP3.LUT R24, R9, 0xf00, RZ, 0xc0, !PT ; |
| 103 | ins 0x00000f0009187812 0x000fc600078ec0ff |
| 104 | note IMAD R25, R26, 0x10, R25 ; |
| 105 | ins 0x000000101a197824 0x000fe200078e0219 |
| 106 | note LOP3.LUT R26, R23, 0xf00, RZ, 0xc0, !PT ; |
| 107 | ins 0x00000f00171a7812 0x000fe200078ec0ff |
| 108 | note IMAD R11, R24, 0x100, R11 ; |
| 109 | ins 0x00000100180b7824 0x000fe200078e020b |
| 110 | note LOP3.LUT R24, R9, 0xf000, RZ, 0xc0, !PT ; |
| 111 | ins 0x0000f00009187812 0x000fe200078ec0ff |
| 112 | note MOV R9, R8 ; |
| 113 | ins 0x0000000800097202 0x010fe40000000f00 |
| 114 | note IMAD R25, R26, 0x100, R25 ; |
| 115 | ins 0x000001001a197824 0x000fe200078e0219 |
| 116 | note LOP3.LUT R26, R23, 0xf000, RZ, 0xc0, !PT ; |
| 117 | ins 0x0000f000171a7812 0x000fe200078ec0ff |
| 118 | note IMAD R24, R24, 0x1000, R11 ; |
| 119 | ins 0x0000100018187824 0x000fe200078e020b |
| 120 | note MOV R11, R10 ; |
| 121 | ins 0x0000000a000b7202 0x020fc60000000f00 |
| 122 | note IMAD R25, R26, 0x1000, R25 ; |
| 123 | ins 0x000010001a197824 0x000fe400078e0219 |
| 124 | note IMAD.SHL.U32 R24, R24, 0x4, RZ ; |
| 125 | ins 0x0000000418187824 0x000fe400078e00ff |
| 126 | note IMAD.SHL.U32 R25, R25, 0x4, RZ ; |
| 127 | ins 0x0000000419197824 0x000fce00078e00ff |
| 128 | note QMMA.SF.16832.F32.E4M3.E2M1.E8 R4, R8, R24, R4, R17, R22, URZ ; |
| 129 | ins 0x716011180804747a 0x000fe2000020be04 |
| 130 | note NOP ; |
| 131 | ins 0x0000000000007918 0x000fda0000000000 |
| 132 | note @!P0 BRA 0x1b0 ; |
| 133 | ins 0xfffffffc007c8947 0x000fde000383ffff |
| 134 | note ISETP.NE.U32.AND P0, PT, R13, RZ, PT ; |
| 135 | ins 0x000000ff0d00720c 0x000fda0003f05070 |
| 136 | note @P0 EXIT ; |
| 137 | ins 0x000000000000094d 0x000fea0003800000 |
| 138 | note LDC R7, c[0x0][0x370] ; |
| 139 | ins 0x0000dc00ff077b82 0x000e300000000800 |
| 140 | note LDC.64 R2, c[0x0][0x3a0] ; |
| 141 | ins 0x0000e800ff027b82 0x000e620000000a00 |
| 142 | note IMAD R7, R7, UR5, R0 ; |
| 143 | ins 0x0000000507077c24 0x001fc8000f8e0200 |
| 144 | note IMAD R7, R7, 0x4, R12 ; |
| 145 | ins 0x0000000407077824 0x000fc800078e020c |
| 146 | note IMAD.SHL.U32 R7, R7, 0x2, RZ ; |
| 147 | ins 0x0000000207077824 0x000fc800078e00ff |
| 148 | note IMAD.WIDE.U32 R2, R7, 0x4, R2 ; |
| 149 | ins 0x0000000407027825 0x002fca00078e0002 |
| 150 | note STG.E.64 desc[UR6][R2.64], R4 ; |
| 151 | ins 0x0000000402007986 0x000fe2000c101b06 |
| 152 | note EXIT ; |
| 153 | ins 0x000000000000794d 0x000fea0003800000 |
| 154 | note BRA 0x460; |
| 155 | ins 0xfffffffc00fc7947 0x000fc0000383ffff |
| 156 | note NOP; |
| 157 | ins 0x0000000000007918 0x000fc00000000000 |
| 158 | note NOP; |
| 159 | ins 0x0000000000007918 0x000fc00000000000 |
| 160 | note NOP; |
| 161 | ins 0x0000000000007918 0x000fc00000000000 |
| 162 | note NOP; |
| 163 | ins 0x0000000000007918 0x000fc00000000000 |
| 164 | note NOP; |
| 165 | ins 0x0000000000007918 0x000fc00000000000 |
| 166 | note NOP; |
| 167 | ins 0x0000000000007918 0x000fc00000000000 |
| 168 | note NOP; |
| 169 | ins 0x0000000000007918 0x000fc00000000000 |
| 170 | note NOP; |
| 171 | ins 0x0000000000007918 0x000fc00000000000 |
| 172 | note NOP; |
| 173 | ins 0x0000000000007918 0x000fc00000000000 |
| 174 | ret 0 |
| 175 | end |