Repository navigation
Conversation
722eca0 to
d9aa1bf
Compare
Its GPU tests had not run where it was written; on an RX 9070: - v_ceil_f64 as -floor_d(-x) gave -0.0 for 1.5625: truncate, +1 below x (no f64 negation). - v_sqrt_f64 / v_rsq_f64 ran in f32 (HLSL has no f64 sqrt, 1.0 is an f32 literal): sqrt_d refines the f32 root with two f64 Newton steps; rsq divides in f64. - gpu_v_swaprel_b32: relative targets must lie within the program's VGPRs, as in gpu_v_movrel – the test now uses v15 directly.
|
Thanks, lots of useful instructions here! I merged the version I reviewed (06a4a49) into main in 3bd4dfe, with fixes in e819d36 – on a real GPU (RX 9070) a few of the new GPU tests failed:
The later pushes still have the old ceil/sqrt, and the new |
|
Sorry – I closed this too early while you were still pushing updates, and GitHub won't let me reopen it because the branch was force-pushed since. Please just open a new PR from the same branch; it'll get a normal review and won't be closed on you. The notes above still apply (what's already on main, what I changed). |
…sors The CAS loop PR #5 added for *_atomic_inc_x2 / dec_x2 read its start value with mem.Load<uint64_t>(), which the window rewrite (mem.Method( → xcl_mMethod() does not see: with title memory above 4 GiB it read window 0 (the CAS then retried with the right value). Now Load2 through the accessors; the test checks the multi-window form and compiles it. Also rpf.rs: an untranslated word in its header.
Adds test-backed RDNA2 ISA translations, including scalar and vector operations, typed buffers, 64-bit atomics/math, relative moves, double frexp/rounding/division fixup, and half division fixup.
Coverage reaches 1036/1157 instructions (89.5%). Deterministic translation tests and DXC validation are included; supported GPU paths are exercised where hardware permits.