upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-11-24 20:49:40 -0500
committerGitHub <noreply@github.com>2026-11-24 20:49:40 -0500
commit8a57b3b1d3cc2d205efe4a9a4a4358a0f5f55ca7 (patch)
treee255ce6c6c61364b32b163051568f79dff891d1d /runtime
parentc266c269e3b2384455e5089dd51dca6003d22321 (diff)
parent0c3acdc03056908d30724e9fd2bcc7acc8021936 (diff)
Merge pull request #1114 from milk4sale/gpu-test/salu-ext
tests: GPU readback for 38 scalar ALU ops on run-time operands (GPU-SALU-EXT)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/test/shaders/check.py28
-rw-r--r--runtime/test/shaders/cs_w32_salu_ext.asm516
2 files changed, 544 insertions, 0 deletions
diff --git a/runtime/test/shaders/check.py b/runtime/test/shaders/check.py
index 3b73d736f..638a8e586 100644
--- a/runtime/test/shaders/check.py
+++ b/runtime/test/shaders/check.py
@@ -695,6 +695,33 @@ def frexp_ldexp_test(tools, spirv, env=None):
695USER_SGPRS = [0x4F000000, 0xDEADBEEF, 7, 0xFFFFFFFF] 695USER_SGPRS = [0x4F000000, 0xDEADBEEF, 7, 0xFFFFFFFF]
696USER_SGPRS_ENV = {"VKC_SGPRS": ",".join(hex(w) for w in USER_SGPRS)} 696USER_SGPRS_ENV = {"VKC_SGPRS": ",".join(hex(w) for w in USER_SGPRS)}
697USER_SGPRS_WORDS = USER_SGPRS + [0xEEEEEEEE] * 4 697USER_SGPRS_WORDS = USER_SGPRS + [0xEEEEEEEE] * 4
698# cs_w32_salu_ext.asm: the sixteen operand words vk_compute_test puts in s4..s19, and the 73 words the shader stores
699# (each derived in its header; tests/test_gpu_salu_ext.py recomputes them with the reference of tools/salu_diff.py).
700SALU_EXT_SGPRS = [0x7FFFFFFF, 0x80000000, 0xFFFFFFFF, 0x00000001, 0x12345678, 0xDEADBEEF, 0x0000FF80, 0x00000025,
701 0x00000040, 0x00000000, 0x00000001, 0x80000001, 0xFFFF0000, 0xFFFFFFFF, 0x00000000, 0x00000047]
702SALU_EXT_WORDS = [
703 0xFFFFFFFF, 0x12345677, 0xCC89A887, 0x00000000, 0x33765778, 0x00000000, 0xCC99E897, 0x00000000,
704 0xFC000000, 0x00000000, 0x00000000, 0x12345680, 0x01F3266F, 0x00000011, 0x80000000, 0x00000001,
705 0x00000000, 0x12345678, 0x00000008, 0x00000000, 0x80000000, 0x1233D678, 0x7FFFFFFF, 0x0FD5BDEE,
706 0xBEEF5678, 0xDEAD1234, 0x1E6A2C48, 0x00000001, 0xFFFFFFFF, 0x0000001F, 0x00000010, 0xFFFFFFFF,
707 0x00000000, 0xFFFFFF80, 0x00000078, 0xFFFFFFDF, 0x00000020, 0xC962FC98, 0x12345678, 0xFFFF8000,
708 0x00000040, 0x00000000, 0x00000001, 0x80000001, 0xFFFF0000, 0xFFFFFFDF, 0xFFFFFF7F, 0xFFFFFFFF,
709 0x00000000, 0x00000020, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x02000000, 0xFF000000, 0x00000000,
710 0x00000000, 0x00000000, 0x00000020, 0x00000080, 0x00000080, 0x00000000, 0x00000000, 0x07FFFFFF,
711 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0x0056D555, 0x000D5555, 0x00555555,
712 0x0000015B]
713SALU_EXT_HEAP_WORDS = 80 # the 73 results, then words that must keep the harness's fill
714
715
716def salu_ext_test(tools, spirv, env=None):
717 """cs_w32_salu_ext: 38 scalar ALU ops on the operands of SALU_EXT_SGPRS, every destination and SCC stored. The
718 whole 80-word heap is compared: the 73 results and the untouched fill after them."""
719 child = dict(os.environ if env is None else env, VKC_SGPRS=",".join(f"{w:#x}" for w in SALU_EXT_SGPRS))
720 child.setdefault("VKC_SUBGROUP_SIZE", str(subgroup_size(spirv, "cs_w32_salu_ext") or 32))
721 expected = SALU_EXT_WORDS + [0xEEEEEEEE] * (SALU_EXT_HEAP_WORDS - len(SALU_EXT_WORDS))
722 return dump_test(tools, spirv, "cs_w32_salu_ext", expected, SALU_EXT_HEAP_WORDS, child)
723
724
698# cs_fma_fused.asm: single-rounded f32 multiply-adds (and one f16). The operands arrive in s4..s7 so no driver can fold 725# cs_fma_fused.asm: single-rounded f32 multiply-adds (and one f16). The operands arrive in s4..s7 so no driver can fold
699# them; FMA_FUSED are the exact single-rounded words and FMA_SPLIT are the exact split-rounded words (derivations in 726# them; FMA_FUSED are the exact single-rounded words and FMA_SPLIT are the exact split-rounded words (derivations in
700# the .asm header; out[7] is f16 round-to-odd, never GLSL Fma, so it is always 0x7351). Under --fma khr 727# the .asm header; out[7] is f16 round-to-odd, never GLSL Fma, so it is always 0x7351). Under --fma khr
@@ -2187,6 +2214,7 @@ def main():
2187 results.append((name, compute_test(tools, spirv, name, groups, "dump", expected_words=want))) 2214 results.append((name, compute_test(tools, spirv, name, groups, "dump", expected_words=want)))
2188 results.append(("cs_user_sgprs", compute_test(tools, spirv, "cs_user_sgprs", "1", "dump", 2215 results.append(("cs_user_sgprs", compute_test(tools, spirv, "cs_user_sgprs", "1", "dump",
2189 expected_words=USER_SGPRS_WORDS, env=USER_SGPRS_ENV))) 2216 expected_words=USER_SGPRS_WORDS, env=USER_SGPRS_ENV)))
2217 results.append(("cs_w32_salu_ext", salu_ext_test(tools, spirv)))
2190 results.append(("cs_heap_init", compute_test(tools, spirv, "cs_heap_init", "1", "dump", 2218 results.append(("cs_heap_init", compute_test(tools, spirv, "cs_heap_init", "1", "dump",
2191 expected_words=HEAP_INIT_EXPECTED, env=heap_init_env()))) 2219 expected_words=HEAP_INIT_EXPECTED, env=heap_init_env())))
2192 results.append(("cs_w32_shift64", shift64_test(tools, spirv))) 2220 results.append(("cs_w32_shift64", shift64_test(tools, spirv)))
diff --git a/runtime/test/shaders/cs_w32_salu_ext.asm b/runtime/test/shaders/cs_w32_salu_ext.asm
new file mode 100644
index 000000000..9d74cbd2c
--- /dev/null
+++ b/runtime/test/shaders/cs_w32_salu_ext.asm
@@ -0,0 +1,516 @@
1; GPU-SALU-EXT: 38 scalar ALU ops on operands that arrive at run time.
2; group: 1,1,1
3; rsrc2: 0x80a8
4; mattr: +wavefrontsize32,-wavefrontsize64
5; Twenty user SGPRs: s[0:3] are the output V#, and s4..s19 are sixteen operand words that vk_compute_test seeds
6; from VKC_SGPRS (check.py's SALU_EXT_SGPRS), so the translator cannot fold a scalar op as it folds one whose
7; operands are literals:
8; s4 0x7fffffff s5 0x80000000 s6 0xffffffff s7 1 s8 0x12345678 s9 0xdeadbeef s10 0x0000ff80
9; s11 37 (a count) s[12:13] 0x00000000_00000040 s[14:15] 0x80000001_00000001
10; s[16:17] 0xffffffff_ffff0000 s18 0 s19 71 (a count)
11; One thread runs every op and stores 73 words, out[i] at byte 4 * i. A result that is a pair takes two words, low
12; first. The values are the RDNA2 ISA's (docs/design.md); tests/test_gpu_salu_ext.py recomputes them from the
13; instructions below with the reference of tools/salu_diff.py.
14; out[0] s_sub_i32 s32, s4, s5 0xffffffff signed overflow
15; out[1] s_sub_i32 s33, s8, s7 0x12345677
16; out[2] s_andn2_b32 s34, s9, s8 0xcc89a887
17; out[3] s_andn2_b32 s35, s8, s6 0x00000000 zero
18; out[4] s_orn2_b32 s36, s8, s9 0x33765778
19; out[5] s_orn2_b32 s37, s18, s6 0x00000000 zero
20; out[6] s_xor_b32 s38, s8, s9 0xcc99e897
21; out[7] s_xor_b32 s39, s9, s9 0x00000000 zero
22; out[8] s_ashr_i32 s40, s5, s11 0xfc000000 the count 37 is taken modulo 32
23; out[9] s_ashr_i32 s41, s7, s11 0x00000000 zero
24; out[10] s_lshl3_add_u32 s42, s5, s18 0x00000000 zero, with SCC from the bit shifted out
25; out[11] s_lshl3_add_u32 s43, s7, s8 0x12345680
26; out[12] s_lshl4_add_u32 s44, s8, s9 0x01f3266f the 64-bit sum passes 2^32
27; out[13] s_lshl4_add_u32 s45, s7, s7 0x00000011
28; out[14] s_abs_i32 s46, s5 0x80000000 -2^31 stays
29; out[15] s_abs_i32 s47, s6 0x00000001
30; out[16] s_abs_i32 s48, s18 0x00000000 zero
31; out[17] s_abs_i32 s26, s8 0x12345678 a positive word stays
32; out[18] s_bcnt0_i32_b32 s49, s9 0x00000008
33; out[19] s_bcnt0_i32_b32 s50, s6 0x00000000 zero
34; out[20] s_addk_i32 s51, 0x1 on a copy of s4 0x80000000 signed overflow
35; out[21] s_addk_i32 s52, 0x8000 on a copy of s8 0x1233d678 the immediate is -32768
36; out[22] s_addk_i32 s53, 0xffff on a copy of s5 0x7fffffff the immediate is -1: signed overflow
37; out[23] s_mul_hi_u32 s54, s9, s8 0x0fd5bdee
38; out[24] s_pack_ll_b32_b16 s55, s8, s9 0xbeef5678
39; out[25] s_pack_hh_b32_b16 s56, s8, s9 0xdead1234
40; out[26] s_brev_b32 s57, s8 0x1e6a2c48
41; out[27] s_flbit_i32 s58, s5 0x00000001 one bit like the sign
42; out[28] s_flbit_i32 s59, s6 0xffffffff -1: every bit is the sign
43; out[29] s_flbit_i32 s60, s7 0x0000001f
44; out[30] s_flbit_i32_b32 s61, s10 0x00000010
45; out[31] s_flbit_i32_b32 s62, s18 0xffffffff -1 for zero
46; out[32] s_flbit_i32_b32 s27, s5 0x00000000 the top bit is set
47; out[33] s_sext_i32_i8 s63, s10 0xffffff80
48; out[34] s_sext_i32_i8 s64, s8 0x00000078
49; out[35] s_bitset0_b32 s65, s11 on s65 = s6 0xffffffdf bit 37 modulo 32
50; out[36] s_bitset1_b32 s66, s11 on s66 = s18 0x00000020
51; out[37] s_mulk_i32 s67, 0xfffd on s67 = s8 0xc962fc98 times -3
52; out[38] s_cmovk_i32 s68, 0x8000 on s68 = s8 0x12345678 SCC 0: keeps
53; out[39] s_cmovk_i32 s69, 0x8000 on s69 = s8 0xffff8000 SCC 1: takes -32768
54; out[40,41] s_cmov_b64 s[70:71], s[14:15] on s70 = s12, s71 = s13 0x00000040 0x00000000 SCC 0: keeps
55; out[42,43] s_cmov_b64 s[72:73], s[14:15] on s72 = s12, s73 = s13 0x00000001 0x80000001 SCC 1: takes
56; out[44,45] s_bitset0_b64 s[74:75], s11 on s74 = s16, s75 = s17 0xffff0000 0xffffffdf bit 37
57; out[46,47] s_bitset0_b64 s[28:29], s19 on s28 = s6, s29 = s6 0xffffff7f 0xffffffff bit 71 modulo 64
58; out[48] s_ff0_i32_b64 s76, s[16:17] 0x00000000
59; out[49] s_ff0_i32_b64 s77, s[78:79] on s78 = s6, s79 = s10 0x00000020 the first 0 is in the high dword
60; out[50] s_ff0_i32_b64 s82, s[80:81] on s80 = s6, s81 = s6 0xffffffff -1: no 0 bit
61; out[51,52] s_ashr_i64 s[84:85], s[16:17], s11 0xffffffff 0xffffffff
62; out[53,54] s_ashr_i64 s[86:87], s[14:15], s19 0x02000000 0xff000000 the count 71 is taken modulo 64
63; out[55,56] s_ashr_i64 s[88:89], s[12:13], s11 0x00000000 0x00000000 zero
64; out[57,58] s_lshl_b64 s[90:91], s[14:15], s11 0x00000000 0x00000020
65; out[59,60] s_lshl_b64 s[92:93], s[14:15], s19 0x00000080 0x00000080 the count 71 is taken modulo 64
66; out[61,62] s_lshl_b64 s[94:95], s[22:23], s11 on s22 = s18, s23 = s5 0x00000000 0x00000000 zero: its one bit leaves
67; out[63,64] s_lshr_b64 s[96:97], s[16:17], s11 0x07ffffff 0x00000000
68; out[65,66] s_lshr_b64 s[98:99], s[12:13], s19 0x00000000 0x00000000 zero
69; out[67] s_bcnt0_i32_b64 s24, s[16:17] 0x00000010
70; out[68] s_bcnt0_i32_b64 s25, s[80:81] 0x00000000 zero
71; out[69] SCC after each of the 23 ops of out[0..22], op n in bit n: 0x0056d555 (set by a signed overflow,
72; by a non-zero result, and by the sum of s_lshlN_add_u32 passing 2^32 in 64 bits)
73; out[70] SCC of 21 compares and bit tests, in program order from bit 0: 0x000d5555. The eight s_cmp_ forms,
74; each on a pair that makes it true and then on one that makes it false: the signed ones tell
75; 0x7fffffff from 0x80000000 and -1 from 1 as signed words, s_cmp_gt_u32 and s_cmp_le_u32 the same
76; words as unsigned ones, and s_cmp_le_u32 is true once more on equal words. Then s_bitcmp0_b32 on
77; bit 37 modulo 32 (set: false) and on bit 1 (clear: true), and s_bitcmp1_b32 on the same two bits.
78; out[71] SCC after each of the 24 ops of out[23..50], none of which writes it: 0x00555555. It is set to 1
79; before the first, to 0 before the second and so on in turn, by s_cmp_eq_u32 / s_cmp_lg_u32 of s4
80; with itself; s_cmovk_i32 and s_cmov_b64 read it.
81; out[72] SCC after each of the 10 ops of out[51..68], op n in bit n: 0x0000015b (a non-zero result)
82; Words 73..79 of the 80-word heap must keep the harness's 0xeeeeeeee.
83; Run: VKC_SGPRS=<the sixteen words> VKC_OUT_WORDS=80 vk_compute_test cs_w32_salu_ext.spv 1 dump, as check.py's
84; salu_ext_test does; all 80 words are compared.
85s_mov_b32 s100, 0
86s_mov_b32 s101, 0
87s_mov_b32 s102, 0
88s_mov_b32 s103, 0
89s_sub_i32 s32, s4, s5
90s_cselect_b32 s104, 0x1, 0
91s_or_b32 s100, s100, s104
92s_sub_i32 s33, s8, s7
93s_cselect_b32 s104, 0x2, 0
94s_or_b32 s100, s100, s104
95s_andn2_b32 s34, s9, s8
96s_cselect_b32 s104, 0x4, 0
97s_or_b32 s100, s100, s104
98s_andn2_b32 s35, s8, s6
99s_cselect_b32 s104, 0x8, 0
100s_or_b32 s100, s100, s104
101s_orn2_b32 s36, s8, s9
102s_cselect_b32 s104, 0x10, 0
103s_or_b32 s100, s100, s104
104s_orn2_b32 s37, s18, s6
105s_cselect_b32 s104, 0x20, 0
106s_or_b32 s100, s100, s104
107s_xor_b32 s38, s8, s9
108s_cselect_b32 s104, 0x40, 0
109s_or_b32 s100, s100, s104
110s_xor_b32 s39, s9, s9
111s_cselect_b32 s104, 0x80, 0
112s_or_b32 s100, s100, s104
113s_ashr_i32 s40, s5, s11
114s_cselect_b32 s104, 0x100, 0
115s_or_b32 s100, s100, s104
116s_ashr_i32 s41, s7, s11
117s_cselect_b32 s104, 0x200, 0
118s_or_b32 s100, s100, s104
119s_lshl3_add_u32 s42, s5, s18
120s_cselect_b32 s104, 0x400, 0
121s_or_b32 s100, s100, s104
122s_lshl3_add_u32 s43, s7, s8
123s_cselect_b32 s104, 0x800, 0
124s_or_b32 s100, s100, s104
125s_lshl4_add_u32 s44, s8, s9
126s_cselect_b32 s104, 0x1000, 0
127s_or_b32 s100, s100, s104
128s_lshl4_add_u32 s45, s7, s7
129s_cselect_b32 s104, 0x2000, 0
130s_or_b32 s100, s100, s104
131s_abs_i32 s46, s5
132s_cselect_b32 s104, 0x4000, 0
133s_or_b32 s100, s100, s104
134s_abs_i32 s47, s6
135s_cselect_b32 s104, 0x8000, 0
136s_or_b32 s100, s100, s104
137s_abs_i32 s48, s18
138s_cselect_b32 s104, 0x10000, 0
139s_or_b32 s100, s100, s104
140s_abs_i32 s26, s8
141s_cselect_b32 s104, 0x20000, 0
142s_or_b32 s100, s100, s104
143s_bcnt0_i32_b32 s49, s9
144s_cselect_b32 s104, 0x40000, 0
145s_or_b32 s100, s100, s104
146s_bcnt0_i32_b32 s50, s6
147s_cselect_b32 s104, 0x80000, 0
148s_or_b32 s100, s100, s104
149s_mov_b32 s51, s4
150s_addk_i32 s51, 0x1
151s_cselect_b32 s104, 0x100000, 0
152s_or_b32 s100, s100, s104
153s_mov_b32 s52, s8
154s_addk_i32 s52, 0x8000
155s_cselect_b32 s104, 0x200000, 0
156s_or_b32 s100, s100, s104
157s_mov_b32 s53, s5
158s_addk_i32 s53, 0xffff
159s_cselect_b32 s104, 0x400000, 0
160s_or_b32 s100, s100, s104
161s_cmp_eq_i32 s5, s5
162s_cselect_b32 s104, 0x1, 0
163s_or_b32 s101, s101, s104
164s_cmp_eq_i32 s4, s5
165s_cselect_b32 s104, 0x2, 0
166s_or_b32 s101, s101, s104
167s_cmp_lg_i32 s4, s5
168s_cselect_b32 s104, 0x4, 0
169s_or_b32 s101, s101, s104
170s_cmp_lg_i32 s6, s6
171s_cselect_b32 s104, 0x8, 0
172s_or_b32 s101, s101, s104
173s_cmp_gt_i32 s4, s5
174s_cselect_b32 s104, 0x10, 0
175s_or_b32 s101, s101, s104
176s_cmp_gt_i32 s6, s7
177s_cselect_b32 s104, 0x20, 0
178s_or_b32 s101, s101, s104
179s_cmp_ge_i32 s5, s5
180s_cselect_b32 s104, 0x40, 0
181s_or_b32 s101, s101, s104
182s_cmp_ge_i32 s6, s7
183s_cselect_b32 s104, 0x80, 0
184s_or_b32 s101, s101, s104
185s_cmp_lt_i32 s6, s7
186s_cselect_b32 s104, 0x100, 0
187s_or_b32 s101, s101, s104
188s_cmp_lt_i32 s4, s5
189s_cselect_b32 s104, 0x200, 0
190s_or_b32 s101, s101, s104
191s_cmp_le_i32 s5, s4
192s_cselect_b32 s104, 0x400, 0
193s_or_b32 s101, s101, s104
194s_cmp_le_i32 s7, s6
195s_cselect_b32 s104, 0x800, 0
196s_or_b32 s101, s101, s104
197s_cmp_gt_u32 s6, s7
198s_cselect_b32 s104, 0x1000, 0
199s_or_b32 s101, s101, s104
200s_cmp_gt_u32 s4, s5
201s_cselect_b32 s104, 0x2000, 0
202s_or_b32 s101, s101, s104
203s_cmp_le_u32 s7, s6
204s_cselect_b32 s104, 0x4000, 0
205s_or_b32 s101, s101, s104
206s_cmp_le_u32 s5, s4
207s_cselect_b32 s104, 0x8000, 0
208s_or_b32 s101, s101, s104
209s_cmp_le_u32 s8, s8
210s_cselect_b32 s104, 0x10000, 0
211s_or_b32 s101, s101, s104
212s_bitcmp0_b32 s8, s11
213s_cselect_b32 s104, 0x20000, 0
214s_or_b32 s101, s101, s104
215s_bitcmp0_b32 s8, s7
216s_cselect_b32 s104, 0x40000, 0
217s_or_b32 s101, s101, s104
218s_bitcmp1_b32 s8, s11
219s_cselect_b32 s104, 0x80000, 0
220s_or_b32 s101, s101, s104
221s_bitcmp1_b32 s8, s7
222s_cselect_b32 s104, 0x100000, 0
223s_or_b32 s101, s101, s104
224s_cmp_eq_u32 s4, s4
225s_mul_hi_u32 s54, s9, s8
226s_cselect_b32 s104, 0x1, 0
227s_or_b32 s102, s102, s104
228s_cmp_lg_u32 s4, s4
229s_pack_ll_b32_b16 s55, s8, s9
230s_cselect_b32 s104, 0x2, 0
231s_or_b32 s102, s102, s104
232s_cmp_eq_u32 s4, s4
233s_pack_hh_b32_b16 s56, s8, s9
234s_cselect_b32 s104, 0x4, 0
235s_or_b32 s102, s102, s104
236s_cmp_lg_u32 s4, s4
237s_brev_b32 s57, s8
238s_cselect_b32 s104, 0x8, 0
239s_or_b32 s102, s102, s104
240s_cmp_eq_u32 s4, s4
241s_flbit_i32 s58, s5
242s_cselect_b32 s104, 0x10, 0
243s_or_b32 s102, s102, s104
244s_cmp_lg_u32 s4, s4
245s_flbit_i32 s59, s6
246s_cselect_b32 s104, 0x20, 0
247s_or_b32 s102, s102, s104
248s_cmp_eq_u32 s4, s4
249s_flbit_i32 s60, s7
250s_cselect_b32 s104, 0x40, 0
251s_or_b32 s102, s102, s104
252s_cmp_lg_u32 s4, s4
253s_flbit_i32_b32 s61, s10
254s_cselect_b32 s104, 0x80, 0
255s_or_b32 s102, s102, s104
256s_cmp_eq_u32 s4, s4
257s_flbit_i32_b32 s62, s18
258s_cselect_b32 s104, 0x100, 0
259s_or_b32 s102, s102, s104
260s_cmp_lg_u32 s4, s4
261s_flbit_i32_b32 s27, s5
262s_cselect_b32 s104, 0x200, 0
263s_or_b32 s102, s102, s104
264s_cmp_eq_u32 s4, s4
265s_sext_i32_i8 s63, s10
266s_cselect_b32 s104, 0x400, 0
267s_or_b32 s102, s102, s104
268s_cmp_lg_u32 s4, s4
269s_sext_i32_i8 s64, s8
270s_cselect_b32 s104, 0x800, 0
271s_or_b32 s102, s102, s104
272s_mov_b32 s65, s6
273s_cmp_eq_u32 s4, s4
274s_bitset0_b32 s65, s11
275s_cselect_b32 s104, 0x1000, 0
276s_or_b32 s102, s102, s104
277s_mov_b32 s66, s18
278s_cmp_lg_u32 s4, s4
279s_bitset1_b32 s66, s11
280s_cselect_b32 s104, 0x2000, 0
281s_or_b32 s102, s102, s104
282s_mov_b32 s67, s8
283s_cmp_eq_u32 s4, s4
284s_mulk_i32 s67, 0xfffd
285s_cselect_b32 s104, 0x4000, 0
286s_or_b32 s102, s102, s104
287s_mov_b32 s68, s8
288s_cmp_lg_u32 s4, s4
289s_cmovk_i32 s68, 0x8000
290s_cselect_b32 s104, 0x8000, 0
291s_or_b32 s102, s102, s104
292s_mov_b32 s69, s8
293s_cmp_eq_u32 s4, s4
294s_cmovk_i32 s69, 0x8000
295s_cselect_b32 s104, 0x10000, 0
296s_or_b32 s102, s102, s104
297s_mov_b32 s70, s12
298s_mov_b32 s71, s13
299s_cmp_lg_u32 s4, s4
300s_cmov_b64 s[70:71], s[14:15]
301s_cselect_b32 s104, 0x20000, 0
302s_or_b32 s102, s102, s104
303s_mov_b32 s72, s12
304s_mov_b32 s73, s13
305s_cmp_eq_u32 s4, s4
306s_cmov_b64 s[72:73], s[14:15]
307s_cselect_b32 s104, 0x40000, 0
308s_or_b32 s102, s102, s104
309s_mov_b32 s74, s16
310s_mov_b32 s75, s17
311s_cmp_lg_u32 s4, s4
312s_bitset0_b64 s[74:75], s11
313s_cselect_b32 s104, 0x80000, 0
314s_or_b32 s102, s102, s104
315s_mov_b32 s28, s6
316s_mov_b32 s29, s6
317s_cmp_eq_u32 s4, s4
318s_bitset0_b64 s[28:29], s19
319s_cselect_b32 s104, 0x100000, 0
320s_or_b32 s102, s102, s104
321s_cmp_lg_u32 s4, s4
322s_ff0_i32_b64 s76, s[16:17]
323s_cselect_b32 s104, 0x200000, 0
324s_or_b32 s102, s102, s104
325s_mov_b32 s78, s6
326s_mov_b32 s79, s10
327s_cmp_eq_u32 s4, s4
328s_ff0_i32_b64 s77, s[78:79]
329s_cselect_b32 s104, 0x400000, 0
330s_or_b32 s102, s102, s104
331s_mov_b32 s80, s6
332s_mov_b32 s81, s6
333s_cmp_lg_u32 s4, s4
334s_ff0_i32_b64 s82, s[80:81]
335s_cselect_b32 s104, 0x800000, 0
336s_or_b32 s102, s102, s104
337s_ashr_i64 s[84:85], s[16:17], s11
338s_cselect_b32 s104, 0x1, 0
339s_or_b32 s103, s103, s104
340s_ashr_i64 s[86:87], s[14:15], s19
341s_cselect_b32 s104, 0x2, 0
342s_or_b32 s103, s103, s104
343s_ashr_i64 s[88:89], s[12:13], s11
344s_cselect_b32 s104, 0x4, 0
345s_or_b32 s103, s103, s104
346s_lshl_b64 s[90:91], s[14:15], s11
347s_cselect_b32 s104, 0x8, 0
348s_or_b32 s103, s103, s104
349s_lshl_b64 s[92:93], s[14:15], s19
350s_cselect_b32 s104, 0x10, 0
351s_or_b32 s103, s103, s104
352s_mov_b32 s22, s18
353s_mov_b32 s23, s5
354s_lshl_b64 s[94:95], s[22:23], s11
355s_cselect_b32 s104, 0x20, 0
356s_or_b32 s103, s103, s104
357s_lshr_b64 s[96:97], s[16:17], s11
358s_cselect_b32 s104, 0x40, 0
359s_or_b32 s103, s103, s104
360s_lshr_b64 s[98:99], s[12:13], s19
361s_cselect_b32 s104, 0x80, 0
362s_or_b32 s103, s103, s104
363s_bcnt0_i32_b64 s24, s[16:17]
364s_cselect_b32 s104, 0x100, 0
365s_or_b32 s103, s103, s104
366s_bcnt0_i32_b64 s25, s[80:81]
367s_cselect_b32 s104, 0x200, 0
368s_or_b32 s103, s103, s104
369v_mov_b32_e32 v21, 0
370v_mov_b32_e32 v20, s32
371buffer_store_dword v20, v21, s[0:3], 0 offen
372v_mov_b32_e32 v20, s33
373buffer_store_dword v20, v21, s[0:3], 0 offen offset:4
374v_mov_b32_e32 v20, s34
375buffer_store_dword v20, v21, s[0:3], 0 offen offset:8
376v_mov_b32_e32 v20, s35
377buffer_store_dword v20, v21, s[0:3], 0 offen offset:12
378v_mov_b32_e32 v20, s36
379buffer_store_dword v20, v21, s[0:3], 0 offen offset:16
380v_mov_b32_e32 v20, s37
381buffer_store_dword v20, v21, s[0:3], 0 offen offset:20
382v_mov_b32_e32 v20, s38
383buffer_store_dword v20, v21, s[0:3], 0 offen offset:24
384v_mov_b32_e32 v20, s39
385buffer_store_dword v20, v21, s[0:3], 0 offen offset:28
386v_mov_b32_e32 v20, s40
387buffer_store_dword v20, v21, s[0:3], 0 offen offset:32
388v_mov_b32_e32 v20, s41
389buffer_store_dword v20, v21, s[0:3], 0 offen offset:36
390v_mov_b32_e32 v20, s42
391buffer_store_dword v20, v21, s[0:3], 0 offen offset:40
392v_mov_b32_e32 v20, s43
393buffer_store_dword v20, v21, s[0:3], 0 offen offset:44
394v_mov_b32_e32 v20, s44
395buffer_store_dword v20, v21, s[0:3], 0 offen offset:48
396v_mov_b32_e32 v20, s45
397buffer_store_dword v20, v21, s[0:3], 0 offen offset:52
398v_mov_b32_e32 v20, s46
399buffer_store_dword v20, v21, s[0:3], 0 offen offset:56
400v_mov_b32_e32 v20, s47
401buffer_store_dword v20, v21, s[0:3], 0 offen offset:60
402v_mov_b32_e32 v20, s48
403buffer_store_dword v20, v21, s[0:3], 0 offen offset:64
404v_mov_b32_e32 v20, s26
405buffer_store_dword v20, v21, s[0:3], 0 offen offset:68
406v_mov_b32_e32 v20, s49
407buffer_store_dword v20, v21, s[0:3], 0 offen offset:72
408v_mov_b32_e32 v20, s50
409buffer_store_dword v20, v21, s[0:3], 0 offen offset:76
410v_mov_b32_e32 v20, s51
411buffer_store_dword v20, v21, s[0:3], 0 offen offset:80
412v_mov_b32_e32 v20, s52
413buffer_store_dword v20, v21, s[0:3], 0 offen offset:84
414v_mov_b32_e32 v20, s53
415buffer_store_dword v20, v21, s[0:3], 0 offen offset:88
416v_mov_b32_e32 v20, s54
417buffer_store_dword v20, v21, s[0:3], 0 offen offset:92
418v_mov_b32_e32 v20, s55
419buffer_store_dword v20, v21, s[0:3], 0 offen offset:96
420v_mov_b32_e32 v20, s56
421buffer_store_dword v20, v21, s[0:3], 0 offen offset:100
422v_mov_b32_e32 v20, s57
423buffer_store_dword v20, v21, s[0:3], 0 offen offset:104
424v_mov_b32_e32 v20, s58
425buffer_store_dword v20, v21, s[0:3], 0 offen offset:108
426v_mov_b32_e32 v20, s59
427buffer_store_dword v20, v21, s[0:3], 0 offen offset:112
428v_mov_b32_e32 v20, s60
429buffer_store_dword v20, v21, s[0:3], 0 offen offset:116
430v_mov_b32_e32 v20, s61
431buffer_store_dword v20, v21, s[0:3], 0 offen offset:120
432v_mov_b32_e32 v20, s62
433buffer_store_dword v20, v21, s[0:3], 0 offen offset:124
434v_mov_b32_e32 v20, s27
435buffer_store_dword v20, v21, s[0:3], 0 offen offset:128
436v_mov_b32_e32 v20, s63
437buffer_store_dword v20, v21, s[0:3], 0 offen offset:132
438v_mov_b32_e32 v20, s64
439buffer_store_dword v20, v21, s[0:3], 0 offen offset:136
440v_mov_b32_e32 v20, s65
441buffer_store_dword v20, v21, s[0:3], 0 offen offset:140
442v_mov_b32_e32 v20, s66
443buffer_store_dword v20, v21, s[0:3], 0 offen offset:144
444v_mov_b32_e32 v20, s67
445buffer_store_dword v20, v21, s[0:3], 0 offen offset:148
446v_mov_b32_e32 v20, s68
447buffer_store_dword v20, v21, s[0:3], 0 offen offset:152
448v_mov_b32_e32 v20, s69
449buffer_store_dword v20, v21, s[0:3], 0 offen offset:156
450v_mov_b32_e32 v20, s70
451buffer_store_dword v20, v21, s[0:3], 0 offen offset:160
452v_mov_b32_e32 v20, s71
453buffer_store_dword v20, v21, s[0:3], 0 offen offset:164
454v_mov_b32_e32 v20, s72
455buffer_store_dword v20, v21, s[0:3], 0 offen offset:168
456v_mov_b32_e32 v20, s73
457buffer_store_dword v20, v21, s[0:3], 0 offen offset:172
458v_mov_b32_e32 v20, s74
459buffer_store_dword v20, v21, s[0:3], 0 offen offset:176
460v_mov_b32_e32 v20, s75
461buffer_store_dword v20, v21, s[0:3], 0 offen offset:180
462v_mov_b32_e32 v20, s28
463buffer_store_dword v20, v21, s[0:3], 0 offen offset:184
464v_mov_b32_e32 v20, s29
465buffer_store_dword v20, v21, s[0:3], 0 offen offset:188
466v_mov_b32_e32 v20, s76
467buffer_store_dword v20, v21, s[0:3], 0 offen offset:192
468v_mov_b32_e32 v20, s77
469buffer_store_dword v20, v21, s[0:3], 0 offen offset:196
470v_mov_b32_e32 v20, s82
471buffer_store_dword v20, v21, s[0:3], 0 offen offset:200
472v_mov_b32_e32 v20, s84
473buffer_store_dword v20, v21, s[0:3], 0 offen offset:204
474v_mov_b32_e32 v20, s85
475buffer_store_dword v20, v21, s[0:3], 0 offen offset:208
476v_mov_b32_e32 v20, s86
477buffer_store_dword v20, v21, s[0:3], 0 offen offset:212
478v_mov_b32_e32 v20, s87
479buffer_store_dword v20, v21, s[0:3], 0 offen offset:216
480v_mov_b32_e32 v20, s88
481buffer_store_dword v20, v21, s[0:3], 0 offen offset:220
482v_mov_b32_e32 v20, s89
483buffer_store_dword v20, v21, s[0:3], 0 offen offset:224
484v_mov_b32_e32 v20, s90
485buffer_store_dword v20, v21, s[0:3], 0 offen offset:228
486v_mov_b32_e32 v20, s91
487buffer_store_dword v20, v21, s[0:3], 0 offen offset:232
488v_mov_b32_e32 v20, s92
489buffer_store_dword v20, v21, s[0:3], 0 offen offset:236
490v_mov_b32_e32 v20, s93
491buffer_store_dword v20, v21, s[0:3], 0 offen offset:240
492v_mov_b32_e32 v20, s94
493buffer_store_dword v20, v21, s[0:3], 0 offen offset:244
494v_mov_b32_e32 v20, s95
495buffer_store_dword v20, v21, s[0:3], 0 offen offset:248
496v_mov_b32_e32 v20, s96
497buffer_store_dword v20, v21, s[0:3], 0 offen offset:252
498v_mov_b32_e32 v20, s97
499buffer_store_dword v20, v21, s[0:3], 0 offen offset:256
500v_mov_b32_e32 v20, s98
501buffer_store_dword v20, v21, s[0:3], 0 offen offset:260
502v_mov_b32_e32 v20, s99
503buffer_store_dword v20, v21, s[0:3], 0 offen offset:264
504v_mov_b32_e32 v20, s24
505buffer_store_dword v20, v21, s[0:3], 0 offen offset:268
506v_mov_b32_e32 v20, s25
507buffer_store_dword v20, v21, s[0:3], 0 offen offset:272
508v_mov_b32_e32 v20, s100
509buffer_store_dword v20, v21, s[0:3], 0 offen offset:276
510v_mov_b32_e32 v20, s101
511buffer_store_dword v20, v21, s[0:3], 0 offen offset:280
512v_mov_b32_e32 v20, s102
513buffer_store_dword v20, v21, s[0:3], 0 offen offset:284
514v_mov_b32_e32 v20, s103
515buffer_store_dword v20, v21, s[0:3], 0 offen offset:288
516s_endpgm