Commit d518908
committed
Update
These are all just 8-byte offset increases from the addition of my epoch interrupt page ptr field to `VMStoreContext`. This script helped me show it:
```python
"""Compare runs of - and + blocks of a diff, and assert that the only
differences between them are differences in hex and decimal numbers therein.
Further, assert that those differences are a rise of 8, representing the size of
the field I added.
Output the diff with the proven-correct regions resolved in favor of the +
lines. Any remaining diff lines are suspicious and should be manually examined.
"""
import re
from sys import argv
def is_diff_line(s, plus_or_minus):
return bool(re.match(r"^ +" + "\\" + plus_or_minus, s))
def is_minus_line(s):
return is_diff_line(s, "-")
def is_plus_line(s):
return is_diff_line(s, "+")
def check_line_pairs(file_path):
with open(file_path, 'r') as file:
lines = file.readlines()
i = 0
while i < len(lines):
if is_minus_line(lines[i]):
minus_block = []
while i < len(lines) and is_minus_line(lines[i]):
minus_block.append(lines[i])
i += 1
plus_block = []
while i < len(lines) and is_plus_line(lines[i]):
plus_block.append(lines[i])
i += 1
if len(minus_block) != len(plus_block):
print(" + BLOCK LENGTHS DIFFERED.")
print("".join(minus_block))
print("".join(plus_block))
continue
# Compare the two blocks line by line
for line1, line2 in zip(minus_block, plus_block):
# Extract numbers (both decimal and hexadecimal) from both lines
numbers1 = [int(num, 16) if num.startswith("0x") else int(num)
for num in re.findall(r'0x[0-9a-fA-F]+|\d+', line1)]
numbers2 = [int(num, 16) if num.startswith("0x") else int(num)
for num in re.findall(r'0x[0-9a-fA-F]+|\d+', line2)]
# Check if the numbers differ by 0 or 8
if len(numbers1) == len(numbers2) and all(n2 - n1 in (0, 8) for n1, n2 in zip(numbers1, numbers2)):
# It's just an increment (or nothing), so keep the new line:
print(re.sub(r"^( +)\+", r"\1 ", line2), end="")
else:
print(line1, end="")
print(line2, end="")
else:
print(lines[i], end="")
i += 1
check_line_pairs(argv[1])
```disas test results.1 parent 6e7112d commit d518908
1,823 files changed
Lines changed: 3180 additions & 3180 deletions
File tree
- tests/disas
- component-model
- gc
- drc
- null
- load-store
- s390x
- winch
- aarch64
- br_if
- br_table
- br
- call_indirect
- call
- f32_abs
- f32_add
- f32_ceil
- f32_convert_i32_s
- f32_convert_i32_u
- f32_convert_i64_s
- f32_convert_i64_u
- f32_copysign
- f32_demote_f64
- f32_div
- f32_eq
- f32_floor
- f32_ge
- f32_gt
- f32_le
- f32_lt
- f32_max
- f32_min
- f32_mul
- f32_nearest
- f32_neg
- f32_ne
- f32_reinterpret_i32
- f32_sqrt
- f32_sub
- f32_trunc
- f64_abs
- f64_add
- f64_ceil
- f64_convert_i32_s
- f64_convert_i32_u
- f64_convert_i64_s
- f64_convert_i64_u
- f64_copysign
- f64_div
- f64_eq
- f64_floor
- f64_ge
- f64_gt
- f64_le
- f64_lt
- f64_max
- f64_min
- f64_mul
- f64_nearest
- f64_neg
- f64_ne
- f64_promote_f32
- f64_reinterpret_i64
- f64_sqrt
- f64_sub
- f64_trunc
- i32_add
- i32_and
- i32_clz
- i32_ctz
- i32_divs
- i32_divu
- i32_eq
- i32_extend_16_s
- i32_extend_8_s
- i32_ge_s
- i32_ge_u
- i32_gt_s
- i32_gt_u
- i32_le_s
- i32_le_u
- i32_lt_s
- i32_lt_u
- i32_mul
- i32_ne
- i32_or
- i32_popcnt
- i32_reinterpret_f32
- i32_rems
- i32_remu
- i32_rotl
- i32_rotr
- i32_shl
- i32_shr_s
- i32_shr_u
- i32_sub
- i32_trunc_f32_s
- i32_trunc_f32_u
- i32_trunc_f64_s
- i32_trunc_f64_u
- i32_wrap_i64
- i32_xor
- i64_add
- i64_and
- i64_clz
- i64_ctz
- i64_divs
- i64_divu
- i64_eq
- i64_extend_16_s
- i64_extend_32_s
- i64_extend_8_s
- i64_extend_i32_s
- i64_extend_i32_u
- i64_ge_s
- i64_ge_u
- i64_gt_s
- i64_gt_u
- i64_le_s
- i64_le_u
- i64_lt_s
- i64_lt_u
- i64_mul
- i64_ne
- i64_or
- i64_popcnt
- i64_reinterpret_f64
- i64_rems
- i64_remu
- i64_rotl
- i64_rotr
- i64_shl
- i64_shr_s
- i64_shr_u
- i64_sub
- i64_trunc_f32_s
- i64_trunc_f32_u
- i64_trunc_f64_s
- i64_trunc_f64_u
- i64_xor
- load
- nop
- params
- store
- x64
- atomic
- fence
- load
- notify
- rmw
- add
- and
- cmpxchg
- or
- sub
- xchg
- xor
- store
- wait
- block
- br_if
- br_table
- br
- call_indirect
- call
- epoch
- f32_abs
- f32_add
- f32_ceil
- f32_const
- f32_convert_i32_s
- f32_convert_i32_u
- f32_convert_i64_s
- f32_convert_i64_u
- f32_copysign
- f32_demote_f64
- f32_div
- f32_eq
- f32_floor
- f32_ge
- f32_gt
- f32_le
- f32_lt
- f32_max
- f32_min
- f32_mul
- f32_nearest
- f32_neg
- f32_ne
- f32_reinterpret_i32
- f32_sqrt
- f32_sub
- f32_trunc
- f32x4_abs
- f32x4_add
- f32x4_ceil
- f32x4_convert_i32x4_s
- f32x4_convert_i32x4_u
- f32x4_demote_f64x2_zero
- f32x4_div
- f32x4_eq
- f32x4_extract_lane
- f32x4_floor
- f32x4_ge
- f32x4_gt
- f32x4_le
- f32x4_lt
- f32x4_max
- f32x4_min
- f32x4_mul
- f32x4_nearest
- f32x4_neg
- f32x4_ne
- f32x4_pmax
- f32x4_pmin
- f32x4_replace_lane
- f32x4_splat
- f32x4_sqrt
- f32x4_sub
- f32x4_trunc
- f64_abs
- f64_add
- f64_ceil
- f64_const
- f64_convert_i32_s
- f64_convert_i32_u
- f64_convert_i64_s
- f64_convert_i64_u
- f64_copysign
- f64_div
- f64_eq
- f64_floor
- f64_ge
- f64_gt
- f64_le
- f64_lt
- f64_max
- f64_min
- f64_mul
- f64_nearest
- f64_neg
- f64_ne
- f64_promote_f32
- f64_reinterpret_i64
- f64_sqrt
- f64_sub
- f64_trunc
- f64x2_abs
- f64x2_add
- f64x2_ceil
- f64x2_convert_low_i32x4_s
- f64x2_convert_low_i32x4_u
- f64x2_div
- f64x2_eq
- f64x2_extract_lane
- f64x2_floor
- f64x2_ge
- f64x2_gt
- f64x2_le
- f64x2_lt
- f64x2_max
- f64x2_min
- f64x2_mul
- f64x2_nearest
- f64x2_neg
- f64x2_ne
- f64x2_pmax
- f64x2_pmin
- f64x2_promote_low_f32x4
- f64x2_replace_lane
- f64x2_splat
- f64x2_sqrt
- f64x2_sub
- f64x2_trunc
- fuel
- i16x8_abs
- i16x8_all_true
- i16x8_avgr_u
- i16x8_bitmask
- i16x8_eq
- i16x8_extend_high_i8x16_s
- i16x8_extend_high_i8x16_u
- i16x8_extend_low_i8x16_s
- i16x8_extend_low_i8x16_u
- i16x8_ge_s
- i16x8_ge_u
- i16x8_gt_s
- i16x8_gt_u
- i16x8_le_s
- i16x8_le_u
- i16x8_lt_s
- i16x8_lt_u
- i16x8_narrow_i32x4_s
- i16x8_narrow_i32x4_u
- i16x8_ne
- i16x8_q15mulr_sat_s
- i16x8
- add
- extadd
- extmul
- extract_lane_s
- extract_lane_u
- max
- min
- mul
- neg
- replace_lane
- shift
- splat
- sub
- i32_add
- i32_and
- i32_clz
- i32_ctz
- i32_divs
- i32_divu
- i32_eqz
- i32_eq
- i32_extend_16_s
- i32_extend_8_s
- i32_ge_s
- i32_ge_u
- i32_gt_s
- i32_gt_u
- i32_le_s
- i32_le_u
- i32_lt_s
- i32_lt_u
- i32_mul
- i32_ne
- i32_or
- i32_popcnt
- i32_reinterpret_f32
- i32_rems
- i32_remu
- i32_rotl
- i32_rotr
- i32_shl
- i32_shr_s
- i32_shr_u
- i32_sub
- i32_trunc_f32_s
- i32_trunc_f32_u
- i32_trunc_f64_s
- i32_trunc_f64_u
- i32_wrap_i64
- i32_xor
- i32x4_abs
- i32x4_all_true
- i32x4_bitmask
- i32x4_dot_i16x8_s
- i32x4_eq
- i32x4_extend_high_i16x8_s
- i32x4_extend_high_i16x8_u
- i32x4_extend_low_i16x8_s
- i32x4_extend_low_i16x8_u
- i32x4_ge_s
- i32x4_ge_u
- i32x4_gt_s
- i32x4_gt_u
- i32x4_le_s
- i32x4_le_u
- i32x4_lt_s
- i32x4_lt_u
- i32x4_ne
- i32x4_trunc_sat_f32x4_s
- i32x4_trunc_sat_f32x4_u
- i32x4_trunc_sat_f64x2_s_zero
- i32x4_trunc_sat_f64x2_u_zero
- i32x4
- add
- extadd
- extmul
- extract_lane
- max
- min
- mul
- neg
- replace_lane
- shift
- splat
- sub
- i64_add
- i64_and
- i64_clz
- i64_ctz
- i64_divs
- i64_divu
- i64_eqz
- i64_eq
- i64_extend_16_s
- i64_extend_32_s
- i64_extend_8_s
- i64_extend_i32_s
- i64_extend_i32_u
- i64_ge_s
- i64_ge_u
- i64_gt_s
- i64_gt_u
- i64_le_s
- i64_le_u
- i64_lt_s
- i64_lt_u
- i64_mul
- i64_ne
- i64_or
- i64_popcnt
- i64_reinterpret_f64
- i64_rems
- i64_remu
- i64_rotl
- i64_rotr
- i64_shl
- i64_shr_s
- i64_shr_u
- i64_sub
- i64_trunc_f32_s
- i64_trunc_f32_u
- i64_trunc_f64_s
- i64_trunc_f64_u
- i64_xor
- i64x2_abs
- i64x2_all_true
- i64x2_bitmask
- i64x2_eq
- i64x2_extend_high_i32x4_s
- i64x2_extend_high_i32x4_u
- i64x2_extend_low_i32x4_s
- i64x2_extend_low_i32x4_u
- i64x2_ge_s
- i64x2_gt_s
- i64x2_le_s
- i64x2_lt_s
- i64x2_ne
- i64x2
- add
- extmul
- extract_lane
- mul
- neg
- replace_lane
- shift
- splat
- sub
- i8x16_abs
- i8x16_all_true
- i8x16_avgr_u
- i8x16_bitmask
- i8x16_eq
- i8x16_ge_s
- i8x16_ge_u
- i8x16_gt_s
- i8x16_gt_u
- i8x16_le_s
- i8x16_le_u
- i8x16_lt_s
- i8x16_lt_u
- i8x16_narrow_i16x8_s
- i8x16_narrow_i16x8_u
- i8x16_ne
- i8x16_popcnt
- i8x16
- add
- extract_lane_s
- extract_lane_u
- max
- min
- neg
- replace_lane
- shift
- shuffle
- splat
- sub
- swizzle
- if
- load
- local
- loop
- nop
- return
- select
- store
- table
- unreachable
- v128_const
- v128_ops
- load_lane
- store_lane
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments