Skip to content

Failed to encode comparison immediate #234

@abrown

Description

@abrown

@markcharney, I think I found an issue where xed-asmparse-main fails to encode the instruction when the immediate is 0:

$ xed-asmparse-main 'cmpps xmm7, xmm15, 0'
Forcing mode to 64b based on regs used
Guessing 32b EOSZ
MODE=64, EOSZ=32
ERROR: Failed to encode input: GENERAL_ERROR

$ xed-asmparse-main 'cmpps xmm7, xmm15, 1'
Forcing mode to 64b based on regs used
Guessing 32b EOSZ
MODE=64, EOSZ=32
Result: 41 0f c2 ff 01

I wouldn't expect that first one to fail, but maybe I'm doing something wrong?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions