Skip to content

Commit

Permalink
correct undefined flags for bsf/bsr
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Dec 3, 2023
1 parent 7629bb0 commit 611cb61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen/x86_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ const encodings = [
{ opcode: 0x0FBA, os: 1, e: 1, fixed_g: 6, imm8: 1, custom: 1 },
{ opcode: 0x0FBA, os: 1, e: 1, fixed_g: 7, imm8: 1, custom: 1 },

{ opcode: 0x0FBC, os: 1, e: 1, mask_flags: af, custom: 1 }, // bsf
{ opcode: 0x0FBD, os: 1, e: 1, mask_flags: af, custom: 1 },
{ opcode: 0x0FBC, os: 1, e: 1, mask_flags: of | sf | af | pf | cf, custom: 1 }, // bsf
{ opcode: 0x0FBD, os: 1, e: 1, mask_flags: of | sf | af | pf | cf, custom: 1 },

// note: overflow flag only undefined if shift is > 1
{ opcode: 0x0FA4, os: 1, e: 1, custom: 1, imm8: 1, mask_flags: af | of }, // shld
Expand Down

0 comments on commit 611cb61

Please sign in to comment.