shader: skip the f32 compare flush against a normal immediate #1565

Open
github-bot wants to merge 6 commits from github-bot/gh-1565 into main AGit
Owner

@⁠Nawid3333 on GitHub · 2026-10-16 18:46 UTC · original
Nawid3333:shader/fcmp-flush-bits → main · +49 −1 · 2 files · 6 commits · open

Second change for nmzik's idea in #1534 (after #1554). I merged main into this branch: since your 3a842e1a the denorm flush is a float compare and multiply, so I dropped this PR's bit-mask flush. What is left is the skip.

Change (EmitFloatCompare32, spirvEmitterInstructions.h): in a compute shader whose MODE flushes f32 input denormals (float_mode & 0x10 clear, e.g. 0xC0), a V_CMP_F32 / V_CMPX_F32 whose other operand is an immediate that stays non-zero after the flush (normal, infinity or NaN) no longer flushes its register operand. Every denormal lies strictly between -2^-126 and 2^-126, so against such a constant it compares exactly like a zero, for every predicate. Compares against 0 and between registers are unchanged, and immediates are still flushed at compile time.

Size

  • v_cmp_lt_f32 vcc, 0.5, v0 with both values loaded from a buffer and float_mode 0xC0: 357 -> 321 SPIR-V words; the flush's four instructions (FAbs, FOrdLessThan, FMul, Select) are gone. Against 0 or a register the module does not change.
  • The compute suite has no flushed compare against such an immediate: all 762 modules emit the same instructions as main.
  • ASTRO BOT's 73 decoded compute shaders: 44 of 1,698 f32 compares (3%) have such an immediate (1e-4, 1e-5, 100.0, ...), so four instructions fewer for each of them in a shader that flushes.

So the gain is small. If you'd rather not take it, tell me and I'll close it.

Same results

  • The skip was part of the earlier exhaustive GPU check of this PR: every 32-bit x against 26 partners (both zeros, denormals, the smallest normals, ±1, ±max, infinities, quiet and signaling NaNs), all 12 SPIR-V float predicates, both operand orders, 0 differences on the RX 9070 XT and the Ryzen 7600X iGPU.
  • New TestNewShaderRecompilerF32CompareFlushSkipsNormalImmediate (shader_cfg_tests, not run by CI): no flush against 0.5, one against 0, two against a register. It fails on main (the 0.5 compare flushes v0) and passes with this change; the whole binary passes.
  • On the RX 9070 XT, natively and with the harness forced to 32-wide subgroups (a local switch), and on the iGPU, compared with main: every compute-suite entry keeps its status.
  • CI (build and tests on Windows, Linux and macOS) passes on 12d411d4.

If you'd like this done differently, tell me and I'll change it.

Written with Claude Code (AI): it wrote the change and ran the tests and measurements on my PC (drivers 26.8.1 and 26.10.1, Windows 11).

🤖 Generated with Claude Code

**@⁠Nawid3333** on GitHub · 2026-10-16 18:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1565) `Nawid3333:shader/fcmp-flush-bits` → `main` · +49 −1 · 2 files · 6 commits · open Second change for nmzik's idea in #1534 (after #1554). I merged main into this branch: since your 3a842e1a the denorm flush is a float compare and multiply, so I dropped this PR's bit-mask flush. What is left is the skip. **Change** (`EmitFloatCompare32`, `spirvEmitterInstructions.h`): in a compute shader whose MODE flushes f32 input denormals (`float_mode & 0x10` clear, e.g. 0xC0), a V_CMP_*_F32 / V_CMPX_*_F32 whose other operand is an immediate that stays non-zero after the flush (normal, infinity or NaN) no longer flushes its register operand. Every denormal lies strictly between -2^-126 and 2^-126, so against such a constant it compares exactly like a zero, for every predicate. Compares against 0 and between registers are unchanged, and immediates are still flushed at compile time. **Size** - `v_cmp_lt_f32 vcc, 0.5, v0` with both values loaded from a buffer and float_mode 0xC0: 357 -> 321 SPIR-V words; the flush's four instructions (FAbs, FOrdLessThan, FMul, Select) are gone. Against 0 or a register the module does not change. - The compute suite has no flushed compare against such an immediate: all 762 modules emit the same instructions as main. - ASTRO BOT's 73 decoded compute shaders: 44 of 1,698 f32 compares (3%) have such an immediate (1e-4, 1e-5, 100.0, ...), so four instructions fewer for each of them in a shader that flushes. So the gain is small. If you'd rather not take it, tell me and I'll close it. **Same results** - The skip was part of the earlier exhaustive GPU check of this PR: every 32-bit x against 26 partners (both zeros, denormals, the smallest normals, ±1, ±max, infinities, quiet and signaling NaNs), all 12 SPIR-V float predicates, both operand orders, 0 differences on the RX 9070 XT and the Ryzen 7600X iGPU. - New `TestNewShaderRecompilerF32CompareFlushSkipsNormalImmediate` (`shader_cfg_tests`, not run by CI): no flush against 0.5, one against 0, two against a register. It fails on main (the 0.5 compare flushes v0) and passes with this change; the whole binary passes. - On the RX 9070 XT, natively and with the harness forced to 32-wide subgroups (a local switch), and on the iGPU, compared with main: every compute-suite entry keeps its status. - CI (build and tests on Windows, Linux and macOS) passes on 12d411d4. If you'd like this done differently, tell me and I'll change it. Written with Claude Code (AI): it wrote the change and ran the tests and measurements on my PC (drivers 26.8.1 and 26.10.1, Windows 11). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With input denormals flushed (MODE 0xC0), every V_CMP_*_F32 operand went
through EmitFlushF32DenormToSignedZero (six SPIR-V instructions).
Compares do not see the sign of zero, and a denormal compares like zero
against any immediate whose magnitude is at least the smallest normal
(normal, infinity or NaN). So:
- against such an immediate, the other operand is not flushed;
- otherwise a register operand becomes
  (bits & 0x7fffffff) < 0x00800000 ? +0.0 : x (four instructions).
The test stays on the integer bits, so it does not depend on how the host
handles denormals in float instructions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's 3a842e1a flushes with a float compare and multiply, so the bit-mask
flush of this PR is dropped. What stays: in a compare against a normal,
infinite or NaN immediate a denormal compares like a zero, so the other
operand is not flushed at all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
v_cmp_lt_f32 against 0.5 emits no FAbs (the operand's flush), against 0 one,
and against a register two, with float_mode 0xc0 and both values loaded from
a buffer so nothing folds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	tests/shaderCfgTests.cpp
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:59:45 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-16 18:50 UTC · original · edited 2026-11-03 20:52 UTC

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

EmitFloatCompare32 now checks immediate operands for absolute bit patterns at or above 0x00800000. It flushes non-immediate operands only when flushing is enabled and neither immediate meets that threshold. A regression test validates emitted SPIR-V for inline-zero, zero, VGPR, and literal operands, and checks their expected FAbs instruction counts.

Suggested reviewers: nmzik

Change: Refactor

Merge Risk: Low · up to e3c19

The change is otherwise supported, but the edge-case test should be added as follow-up to protect denormal flushing behavior.

Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Inconclusive Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: skipping F32 compare flushing for normal immediate operands.
Description check Passed The description directly explains the implementation, affected comparisons, test coverage, performance impact, and reported validation results.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 1 files. (1 skipped: 1 too large.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Warning

Some tools did not complete. Review the errors below.

Cppcheck (2.22.0)
tests/shaderCfgTests.cpp

Cppcheck timed out; analysis of this file is incomplete

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 01c4522e1f and e3c199e090.

Files selected for processing: 1
  • tests/shaderCfgTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-16 18:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1565#issuecomment-6222472368) · edited 2026-11-03 20:52 UTC <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/1565?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=3"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3" alt="Review in Change Stack →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_status_start --> No actionable comments were generated in the recent review. <!-- recent_review_status_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> `EmitFloatCompare32` now checks immediate operands for absolute bit patterns at or above `0x00800000`. It flushes non-immediate operands only when flushing is enabled and neither immediate meets that threshold. A regression test validates emitted SPIR-V for inline-zero, zero, VGPR, and literal operands, and checks their expected `FAbs` instruction counts. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"e3c199e090c175dacae061027ca6cc3af37ac430" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Refactor <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-low-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Low</strong> · up to <code>e3c19</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **🔵 Low** · up to `e3c19` --> <!-- final_review_risk_coverage:{"sourceCommitId":"e3c199e090c175dacae061027ca6cc3af37ac430","coveredCommitId":"e3c199e090c175dacae061027ca6cc3af37ac430","kind":"reviewed"} --> The change is otherwise supported, but the edge-case test should be added as follow-up to protect denormal flushing behavior. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-inconclusive-14-v2.svg" width="14" height="14" align="middle" alt="Inconclusive" title="Inconclusive"></picture></sup> 1</strong></summary> <dl> <dd> <strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> Failed checks: 1 inconclusive</strong> | Check name | Status | Explanation | Resolution | | :---------------- | :--------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ![Inconclusive](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-inconclusive.svg) | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary><strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> Passed checks: 4 passed</strong></summary> <dl> <dd> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title clearly identifies the main change: skipping F32 compare flushing for normal immediate operands. | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description directly explains the implementation, affected comparisons, test coverage, performance impact, and reported validation results. | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | </dd> </dl> </details> <details> <summary><strong>Full details: Docstring Coverage</strong></summary> <dl> <dd> **Explanation** Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 1 files. (1 skipped: 1 too large.) **Resolution** Write docstrings for the functions missing them to satisfy the coverage threshold. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- operational_warnings_start --> <!-- This is an auto-generated comment: all tool run failures by coderabbit.ai --> > [!WARNING] > Some tools did not complete. Review the errors below. > > <details> > <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/wrench-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/wrench.svg" width="16" height="16" align="absmiddle" alt=""></picture> Cppcheck (2.22.0)</strong></summary> > <dl> > <dd> > > <details> > <summary><strong>tests/shaderCfgTests.cpp</strong></summary> > <dl> > <dd> > > Cppcheck timed out; analysis of this file is incomplete > > </dd> > </dl> > </details> > > </dd> > </dl> > </details> <!-- end of auto-generated comment: all tool run failures by coderabbit.ai --> <!-- operational_warnings_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=1565)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end --> <!-- verify_invitation_start --> ### CodeRabbit Verify - [ ] <!-- {"checkboxId":"run-qa-agent"} --> Run CodeRabbit Verify to test the changes in this pull request. <!-- verify_invitation_end --> <!-- recent_review_start --> <h6> <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/eecd982193ba5f3df3ddec500847ea3d99b87a0c/.coderabbit.yaml>) - **Commit**: [eecd982](<https://github.com/KytyPS5/KytyPS5/commit/eecd982193ba5f3df3ddec500847ea3d99b87a0c>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `9bb7b8d6-18bc-440d-95e5-242076c15c9f` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 01c4522e1fa54fd0ccca805c99cb7475fb571a33 and e3c199e090c175dacae061027ca6cc3af37ac430. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 1</strong></summary> <dl> <dd> * `tests/shaderCfgTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. </dd> </dl> </details> </h6> <!-- recent_review_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-03 19:54 UTC · original · reviewed

Nitpick comments: 1
tests/shaderCfgTests.cpp: 1

2510-2545: Trivial · Maintainability & Code Quality · Quick win

Add a subnormal-immediate case to the f32 compare flush test.

The test covers only 0.5 (source 240), 0 (source 128), and VGPR v1 (source 257). Changing the >= 0x00800000 check in EmitFloatCompare32 to a nonzero check leaves all three variants unchanged, so the suite still passes. A subnormal immediate would then skip the register flush while the immediate is still flushed to zero at compile time. The compare can then give a different result than the flushed comparison.

Add a variant with literal source 255 and a subnormal literal such as 0x00400000. Append the literal dword after the EncodeVopc word. Expect one FAbs: the register operand is flushed, and the subnormal immediate is flushed to signed zero without an FAbs. A nonzero-check implementation would emit zero FAbs and fail this case.

Review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 12d411d427 and 01c4522e1f.

Files selected for processing: 2
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterInstructions.h
  • tests/shaderCfgTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-03 19:54 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1565#pullrequestreview-5758612164) · **reviewed** <!-- coderabbit-ai-generated:v1 --> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/brush-cleaning-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/brush-cleaning.svg" width="16" height="16" align="absmiddle" alt=""></picture> Nitpick comments: 1</summary><blockquote> <dl> <dd> <details> <summary>tests/shaderCfgTests.cpp: 1</summary><blockquote> <dl> <dd> `2510-2545`: **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/neutral-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Trivial** · **Maintainability & Code Quality** · **Quick win** **Add a subnormal-immediate case to the f32 compare flush test.** The test covers only `0.5` (source 240), `0` (source 128), and VGPR `v1` (source 257). Changing the `>= 0x00800000` check in `EmitFloatCompare32` to a nonzero check leaves all three variants unchanged, so the suite still passes. A subnormal immediate would then skip the register flush while the immediate is still flushed to zero at compile time. The compare can then give a different result than the flushed comparison. Add a variant with literal source 255 and a subnormal literal such as `0x00400000`. Append the literal dword after the `EncodeVopc` word. Expect one `FAbs`: the register operand is flushed, and the subnormal immediate is flushed to signed zero without an `FAbs`. A nonzero-check implementation would emit zero `FAbs` and fail this case. <!-- cr-comment:v1:7b49c484bf9e3d9babe73996 --> </dd> </dl> </blockquote></details> </dd> </dl> </blockquote></details> <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/eecd982193ba5f3df3ddec500847ea3d99b87a0c/.coderabbit.yaml>) - **Commit**: [eecd982](<https://github.com/KytyPS5/KytyPS5/commit/eecd982193ba5f3df3ddec500847ea3d99b87a0c>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `75990d97-b9d7-4218-8254-c225576bdbf2` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 12d411d42711a4d1b077aae5bc2f3323d0774e7b and 01c4522e1fa54fd0ccca805c99cb7475fb571a33. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 2</summary> <dl> <dd> * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterInstructions.h` * `tests/shaderCfgTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=6ec48c19-6fc7-4090-978a-0e4bb9023cd0 attempt=42924e34-db90-47f7-b5ec-6cde678cb34b batch=1/1 -->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1565/head:github-bot/gh-1565'
git switch 'github-bot/gh-1565'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1565'
git switch 'github-bot/gh-1565'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1565'
git switch 'github-bot/gh-1565'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1565'
git switch 'main'
git merge --squash 'github-bot/gh-1565'
git switch 'main'
git merge --ff-only 'github-bot/gh-1565'
git switch 'main'
git merge 'github-bot/gh-1565'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.