Files
betterxen/fixtures/rdna2/float-exact.s
T
Ranveer Soni 96cff7c66e feat: establish native RDNA-to-Metal recompilation foundation
Add gfx1030 decoding, semantic validation, Metal shader generation, and an independent CPU interpreter for three reproducible compute fixtures. Include native Metal tests, LLVM fixture verification, and the existing CI and Phase 01 handoff.

Verified formatting, all-features Clippy and tests, LLVM decoding, native ARM64 linkage, and all three demo fixtures with Metal API and shader validation enabled.

Signed-off-by: Ranveer Soni <git@ranveersoni.me>
2026-11-22 13:41:55 +05:30

15 lines
375 B
ArmAsm

// SPDX-License-Identifier: GPL-3.0-or-later
.text
buffer_load_dword v1, v0, s[0:3], 0 idxen
s_waitcnt vmcnt(0)
v_mov_b32_e32 v3, 0x00400000
v_and_b32_e32 v1, v1, v3
v_mov_b32_e32 v3, 0x3f800000
v_xor_b32_e32 v1, v1, v3
v_mov_b32_e32 v3, 0x40200000
v_add_f32_e32 v1, v1, v3
v_mul_f32_e32 v1, v1, v3
buffer_store_dword v1, v0, s[4:7], 0 idxen
s_waitcnt_vscnt null, 0
s_endpgm