Commit 2a0d189
committed
fix(tests): drag remaining stale tests into line with the corrected ISA
After commit 6761f0c unblocked the workspace test step in CI by fixing
the SRAI/L32R decoder unit tests, five more pre-existing stale tests
surfaced (the fmt + clippy gates above were masking them on the same
runs). Fix:
* tests/xtensa_exec.rs::enc_srai: helper aliased `at = shamt` (a
shortcut that worked only when the broken decoder colocated source
and shamt in the `t` field). Take both arguments independently —
source goes in `t`, shamt in `s` — matching ISA RM §4.3 RRR
encoding. Updated the two SRAI exec callers.
* tests/xtensa_exec.rs::test_exec_entry_window_overflow_of{4,8,12}:
mark `#[ignore]`. They verify the F5 per-instruction window-overflow
vector path that is intentionally disabled in execute() with
`#[cfg(any())]` (the canonical OF{4,8,12} firmware handlers
double-fault on freshly-created task frames). Sim uses transparent
shadow-spill on CALL{n} instead — see spill_shadow_on_call.
* hw-oracle/tests/oracles.rs::entry_window_overflow_of4: split into
an inner spec helper plus manual `#[test] #[ignore]` for the sim
variant and `#[test] #[cfg(feature="hw-oracle")] #[ignore]` for the
hw variant. Same reason as the xtensa_exec ignore. Keeps the
oracle case as the canonical hardware spec without dragging the
sim suite into red.
* hw-oracle/src/arm_thumb.rs::movw_r0_0xbeef_encoding: the expected
bit-pattern (0xF64B_00EF) decoded back to `movw r0, #0xB8EF`, not
`#0xBEEF`. Recomputed using ARMv7-M ARM §A6.7.74 — imm4=0xB, i=1,
imm3=6, imm8=0xEF gives lo=0x60EF, so the full word is 0xF64B_60EF.
After this: 347 lib tests + every workspace integration test pass,
3 sim-side overflow tests ignored with reasons. fmt + clippy clean.1 parent 6761f0c commit 2a0d189
3 files changed
Lines changed: 59 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
855 | 856 | | |
856 | 857 | | |
857 | 858 | | |
858 | | - | |
| 859 | + | |
859 | 860 | | |
860 | 861 | | |
861 | 862 | | |
| |||
883 | 884 | | |
884 | 885 | | |
885 | 886 | | |
886 | | - | |
| 887 | + | |
887 | 888 | | |
888 | 889 | | |
889 | 890 | | |
| |||
4046 | 4047 | | |
4047 | 4048 | | |
4048 | 4049 | | |
4049 | | - | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
4050 | 4062 | | |
4051 | 4063 | | |
4052 | 4064 | | |
| |||
4087 | 4099 | | |
4088 | 4100 | | |
4089 | 4101 | | |
4090 | | - | |
4091 | | - | |
| 4102 | + | |
4092 | 4103 | | |
| 4104 | + | |
4093 | 4105 | | |
4094 | 4106 | | |
4095 | 4107 | | |
| |||
4124 | 4136 | | |
4125 | 4137 | | |
4126 | 4138 | | |
4127 | | - | |
4128 | | - | |
| 4139 | + | |
4129 | 4140 | | |
| 4141 | + | |
4130 | 4142 | | |
4131 | 4143 | | |
4132 | 4144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
945 | 948 | | |
946 | 949 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
924 | | - | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
925 | 932 | | |
926 | 933 | | |
927 | 934 | | |
| |||
952 | 959 | | |
953 | 960 | | |
954 | 961 | | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
955 | 977 | | |
956 | 978 | | |
957 | 979 | | |
| |||
0 commit comments