Address review comments
- put the division in the synthetic instruction as well, - put the branch table check in the inst's emission code, - replace OneWayCondJmp by TrapIf vcode instruction, - add comments describing code generated by the synthetic instructions
This commit is contained in:
@@ -90,7 +90,13 @@ impl ShowWithRRU for Amode {
|
||||
index.show_rru(mb_rru),
|
||||
1 << shift
|
||||
),
|
||||
Amode::RipRelative { ref target } => format!("{}(%rip)", target.show_rru(mb_rru)),
|
||||
Amode::RipRelative { ref target } => format!(
|
||||
"{}(%rip)",
|
||||
match target {
|
||||
BranchTarget::Label(label) => format!("label{}", label.get()),
|
||||
BranchTarget::ResolvedOffset(offset) => offset.to_string(),
|
||||
}
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user