Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177374
b: refs/heads/master
c: 2363756
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Nieder authored and Ingo Molnar committed Dec 15, 2009
1 parent 2d187e9 commit ee9cdc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf08b3b1a1d06e92036a0c4f144b64fe6be2bffa
refs/heads/master: 23637568ad0c9b5ab0ad27d2f2f26d1e9282c527
10 changes: 5 additions & 5 deletions trunk/arch/x86/tools/gen-insn-attr-x86.awk
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ function add_flags(old,new) {
}

# convert operands to flags.
function convert_operands(opnd, i,imm,mod)
function convert_operands(count,opnd, i,j,imm,mod)
{
imm = null
mod = null
for (i in opnd) {
i = opnd[i]
for (j = 1; j <= count; j++) {
i = opnd[j]
if (match(i, imm_expr) == 1) {
if (!imm_flag[i])
semantic_error("Unknown imm opnd: " i)
Expand Down Expand Up @@ -282,8 +282,8 @@ function convert_operands(opnd, i,imm,mod)
# parse one opcode
if (match($i, opnd_expr)) {
opnd = $i
split($(i++), opnds, ",")
flags = convert_operands(opnds)
count = split($(i++), opnds, ",")
flags = convert_operands(count, opnds)
}
if (match($i, ext_expr))
ext = $(i++)
Expand Down

0 comments on commit ee9cdc3

Please sign in to comment.