Improve lifting of BEXTR instruction for x86 #6287
Labels
Arch: x86
Issues with the x86/x64 architecture plugin
Component: Architecture
Issue needs changes to an architecture plugin
Effort: Trivial
Issue should take < 1 day
Impact: Low
Issue is a papercut or has a good, supported workaround
Type: Enhancement
Issue is a small enhancement to existing functionality
What is the feature you'd like to have?
Lifting of the BEXTR instruction is currently handled as an intrinsic.
This produces hard to understand HLIL, and could be improved if it was lifted to a bit-shift/mask instead.
Assembly:
HLIL:
IDA output:
Is your feature request related to a problem?
Can replicate above assembly by pasting these bytes:
b902010000c4e270f7c7c3
Are any alternative solutions acceptable?
Separating the start/len of the bextr intrinsic into 2 separate arguments (and making intrinsic name shorter) could make it more readable, but bit-shift/mask would be best.
The text was updated successfully, but these errors were encountered: