Skip to content

Output file not matching YAML standard / wrong instruction form name #9

@JanLJL

Description

@JanLJL

When I try to read in the outputted YAML file, I get a ScannerError:

>>> from ruamel.yaml import YAML

>>> yaml = YAML()   
>>> fn = "db.yaml"
>>> with open(fn) as f:
      yaml.load(f)
...
ruamel.yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
  in "db.yaml", line 194, column 23

When checking the db entry, it refers to "xor al,", so it seems like here is an issue with the actual mnemonic of the instruction form as it should be only xor.

- llvmName:        XOR8i8
  name:            xor  al,
  operands:
    - class:           immediate
      imd:             int
      read:            true
      write:           false
  latency:         1
  operandLatencies:
    - sourceOperand:   AL
      targetOperand:   AL
      latencyMin:      1
      latencyMax:      1
    - sourceOperand:   AL
      targetOperand:   EFLAGS
      latencyMin:      1
      latencyMax:      1
  throughput:      1.77
  throughputMin:   1.77
  throughputMax:   1.99

I see this pattern occurs multiple times in my x86 run (39 times in 6147 entries), not only for xor but also for xchg, test, sub, sbb, or, cmp, and, add, and adc; whenever the RAX (EAX/AX/AL) register as fixed operand is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions