summaryrefslogtreecommitdiff
path: root/arch/armv7/thumb2_disasm/spec.txt
diff options
context:
space:
mode:
authorGalen Williamson <galen@vector35.com>2025-08-08 19:08:54 -0400
committerGalen Williamson <galen@vector35.com>2025-08-14 14:06:49 -0400
commit0becd045c5e3e0997c30cb64f19fe21b2b3c421f (patch)
treed3bf904ea9919a076f9793d5e9ca50e4f42b0f75 /arch/armv7/thumb2_disasm/spec.txt
parent2aa2a28a341a2290fe0328a46dbe8e3d7bb3ba4d (diff)
[thumb2] improved disassembly and lifting of VCVT instruction for scalar floating-point/integer cases
Diffstat (limited to 'arch/armv7/thumb2_disasm/spec.txt')
-rw-r--r--arch/armv7/thumb2_disasm/spec.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/armv7/thumb2_disasm/spec.txt b/arch/armv7/thumb2_disasm/spec.txt
index eaffbfce..34b04e65 100644
--- a/arch/armv7/thumb2_disasm/spec.txt
+++ b/arch/armv7/thumb2_disasm/spec.txt
@@ -5529,12 +5529,14 @@ to_integer = (opc1 == '1'); dp_operation = (sz == 1);
unsigned = (opc3 == '0');
m = UInt(Vm:M);
d = if dp_operation then UInt(D:Vd) else UInt(Vd:D);
-if (to_integer) then unsigned = (opc1 == '0');
-if (to_integer) then d = UInt(Vd:D);
-if (to_integer) then m = if dp_operation then UInt(M:Vm) else UInt(Vm:M);
+if to_integer then unsigned = (opc1 == '0');
+if to_integer then round_zero = (op == '1');
+if to_integer then d = UInt(Vd:D);
+if to_integer then m = if dp_operation then UInt(M:Vm) else UInt(Vm:M);
+if !to_integer then round_nearest = FALSE;
fmt_idx = ((op == '0') * 4) + (opc3 * 2) + sz + 2;
if (opc1 == '0') then fmt_idx = sz;
-dt = ((op == '0') * 4) + 2;
+if to_integer then dt = 2 + (sz * 2) + (1 - opc3) else dt = ((op == '0') * 4) + 2;
pcode_end
Encoding T1 ADVSIMD
fmt VCVT<c>.<dt> <Dd>,<Dm>