Skip to content

Commit

Permalink
Revise the comment for ex_relative_jump_tables4
Browse files Browse the repository at this point in the history
  • Loading branch information
junghee committed Aug 20, 2024
1 parent 8a09f0a commit 74d32ae
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions examples/asm_examples/ex_relative_jump_tables4/ex_original.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
// Similar to ex_relative_jump_tables except that this example uses
// `cmov` in computing the value for the bound variable, and tests
// if Ddisasm correctly finds `jump_table_max` for `jump_table_A`, and
// in turn, correctly identifies jump-table entries for `jump_table_B`.
// `cmov` in computing the value for the bound variable, and the `cmov`
// is associated with ambiguous last defs (from the two incoming edges).
//
// To prevent potential overhead, Ddisasm uses a conservative way of
// finding `jump_table_max` by not creating `value_reg_limit` when there
// are multiple correlated reg relations.
//
// This example is to make sure that Ddisasm is not too aggressive in
// finding `jump_table_max` by considering all the ambiguous last defs.
//
// Note that if Ddisasm is aggressive, it will find `jump_table_max`
// for `jump_table_A`, and identify entries for `jump_table_B`
// in this example.
// However, we have observed a hang in spec2006/tonto, etc.

.text
.intel_syntax noprefix
Expand Down

0 comments on commit 74d32ae

Please sign in to comment.