Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/test/generate_atomic_spec_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def bin_statement_lines(template: Template, mem_idx: int, mem_ptr_type: ValueTyp

has_ordering = ordering is not None
has_mem_idx = mem_idx is not None
raw_alignment = int(math.log2(mem_ptr_type.value // 8))
raw_alignment = int(math.log2(template.value_type.value // 8))
alignment = raw_alignment | (has_ordering << 4) | (has_mem_idx << 6)
comment = f"Alignment of {raw_alignment}" \
f'{" with bit 4 set indicating that an ordering immediate follows" if has_ordering else ""}' \
Expand Down
Loading
Loading