Skip to content

(0.33) Don't emit rex prefix on 32-bit - #153

Merged
pshipton merged 1 commit into
eclipse-openj9:v0.33.0-releasefrom
BradleyWood:v0.33-enc32fix
Jul 13, 2022
Merged

pshipton merged 1 commit into
eclipse-openj9:v0.33.0-releasefrom
BradleyWood:v0.33-enc32fix

Conversation

@BradleyWood

@BradleyWood BradleyWood commented Jul 13, 2022 •

Copy link
Copy Markdown
Member

The rex prefix is illegal in 32-bit mode. However,
some VEX and EVEX encoded instructions use REX.W the bit
as an opcode extension bit. In 32-bit mode, if a SIMD
instruction is encoded as a legacy SSE instruction,
and the W bit is set, a rex prefix may be emitted. This
commit prevents that from happening.

Port of eclipse-omr/omr#6597 for0.33

Signed-off-by: BradleyWood bradley.wood@ibm.com

The rex prefix is illegal in 32-bit mode. However,
some VEX and EVEX encoded instructions use REX.W the bit
as an opcode extension bit. In 32-bit mode, if a SIMD
instruction is encoded as a legacy SSE instruction,
and the W bit is set, a rex prefix may be emitted. This
commit prevents that from happening.

Signed-off-by: BradleyWood <bradley.wood@ibm.com>
@pshipton
pshipton merged commit b58aa27 into eclipse-openj9:v0.33.0-release Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants