Skip to content

Neo: V_MAD_MIX opcodes#4338

Merged
squidbus merged 1 commit intoshadps4-emu:mainfrom
mikusp:mad_mix
Apr 30, 2026
Merged

Neo: V_MAD_MIX opcodes#4338
squidbus merged 1 commit intoshadps4-emu:mainfrom
mikusp:mad_mix

Conversation

@mikusp
Copy link
Copy Markdown
Collaborator

@mikusp mikusp commented Apr 30, 2026

<118>V_MAD_MIX_F32 v4, v0, v1, v2 op_sel_hi(0,0,0) = 0x41200000 [Test passed!]
<118>V_MAD_MIX_F32 v5, v3, v3, v2 op_sel_hi(1,1,0) op_sel(1,0,0) = 0x41D00000 [Test passed!]
<118>V_MAD_MIX_F32 v4, vcc_lo, vcc_lo, 0 op_sel_hi(1,1,0) op_sel(0,1,0) = 0x40C00000 [Test passed!]

v0 = 0x40000000; // 2.0
v1 = 0x40400000; // 3.0
v2 = 0x40800000; // 4.0
v3 = 0x51803800; // 44.0 : 0.5
vcc_lo = v3

For some reason vcc_lo seems to be unusable as an operand, instead of 44*0.5+3 I got 0*0+3 as a result, hence the last test is failed
vcc_lo works fine, the problem was in the tests

@squidbus squidbus merged commit a3e25ef into shadps4-emu:main Apr 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants