MOVA

Arithmetic

fixed bit field field the encoding fixes should be

Encoding

313029282726252423222120191817161514131211109876543210
010010destaddrsrc1src2desc

bits 31:0: 0100 10xx xxxx xxxx xxxx xxxx xxxx xxxx

Its format is @arith: format 1: src1 takes the address register. 1i (the I forms): src2 takes it.

Runs execute_MOVA with Form() 0.

Fields

FieldBitsThe Sail reads it in
dest25:21ArithDest
addr20:19ArithA, ArithB
src118:12ArithA (18:14), ArithA
[13:7]13:7ArithB (not a field of the file)
src211:7ArithB
desc6:0ArithPattern

Operation Sail

MOVA: a0.x and a0.y, each the mask enables, the first source's x and y made signed integers

let p = ArithPattern();
let a = ArithA(p, false);
let b = ArithB(p, false);
let d = ArithDest();
if p[3 .. 3] == 0b1 then AddrWrite(0, FToS32(V4At(a, 0)));
if p[2 .. 2] == 0b1 then AddrWrite(1, FToS32(V4At(a, 1)))

Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from nihstro's shader_bytecode.h (BSD-3-Clause), as Azahar reads them.