[PR #665] docs/design.md: one copy of each rule in the Global atomics row (OLD-9923) #706

Open
opened 2026-11-26 20:18:47 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/665
Author: @LouisRiverstone
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry-old-9923


📝 Commits (2)

  • 1918ab8 docs/design.md: one copy of each rule in the Global atomics row (stitched again after old PR 3084)
  • 83f589e Merge remote-tracking branch 'ubq/main' into HEAD

📊 Changes

2 files changed (+5 additions, -4 deletions)

View changed files

📝 docs/design.md (+1 -1)
📝 tools/rdna2spirv.py (+4 -3)

📄 Description

Claimed in the coordination issue as: OLD-9923 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129925439)

Replaces the carried-over draft #191. I'm the original author of old upstream PR 9923.

What and why

The Global atomics row in docs/design.md had been stitched together twice, the second time after old PR 3084, so some rules appeared twice in it. This keeps one copy of each. It also takes fcmpswap out of that row's Still Unsupported list, because it has its own row (pointed out by WALID1618Y on the old PR). The matching comment in tools/rdna2spirv.py now names inc/dec next to the other _x2 forms. The row also gains one pointer sentence: natural alignment (an unaligned dword, or an unaligned 8-byte _x2 element, leaves memory alone and an active glc lane gets 0) is in "Atomic natural alignment" below, which says the same, as does the global_atomic docstring. No behaviour change.

The old branch's final diff, applied on current main (21625bca8) as one commit. It applied cleanly.

Tested

  • python -m compileall -q tools: OK (only a comment changed in tools/rdna2spirv.py).
  • python -I scripts/run_semantic_tests.py tests/semantic: 465 files, 6108 tests, 0 files failed (Linux, Python 3.14.4).

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: documentation only)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/665 **Author:** [@LouisRiverstone](https://github.com/LouisRiverstone) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry-old-9923` --- ### 📝 Commits (2) - [`1918ab8`](https://github.com/ubiquitarianism/leonida/commit/1918ab8eb0d97a40e6bc4a3e27b5b77b575383df) docs/design.md: one copy of each rule in the Global atomics row (stitched again after old PR 3084) - [`83f589e`](https://github.com/ubiquitarianism/leonida/commit/83f589e6fc5a041459196ab505089d87164fca11) Merge remote-tracking branch 'ubq/main' into HEAD ### 📊 Changes **2 files changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+1 -1) 📝 `tools/rdna2spirv.py` (+4 -3) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9923 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129925439) Replaces the carried-over draft #191. I'm the original author of old upstream PR 9923. ### What and why The Global atomics row in `docs/design.md` had been stitched together twice, the second time after old PR 3084, so some rules appeared twice in it. This keeps one copy of each. It also takes `fcmpswap` out of that row's Still Unsupported list, because it has its own row (pointed out by WALID1618Y on the old PR). The matching comment in `tools/rdna2spirv.py` now names inc/dec next to the other `_x2` forms. The row also gains one pointer sentence: natural alignment (an unaligned dword, or an unaligned 8-byte `_x2` element, leaves memory alone and an active `glc` lane gets 0) is in "Atomic natural alignment" below, which says the same, as does the `global_atomic` docstring. No behaviour change. The old branch's final diff, applied on current `main` (21625bca8) as one commit. It applied cleanly. ### Tested - `python -m compileall -q tools`: OK (only a comment changed in `tools/rdna2spirv.py`). - `python -I scripts/run_semantic_tests.py tests/semantic`: 465 files, 6108 tests, 0 files failed (Linux, Python 3.14.4). GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: documentation only) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#706
No description provided.