HomePhabricator

[X86] Add assembler support for {disp8} and {disp32} to control the size of…

Authored by craig.topper on Sat, Aug 1, 1:25 PM.

Description

[X86] Add assembler support for {disp8} and {disp32} to control the size of displacement used for memory operands.

These prefixes should override the default behavior and force a larger immediate size. I don't believe gas issues any warning if you use {disp8} when a 32-bit displacement is already required. And this patch doesn't either.

This completes the {disp8} and {disp32} support from PR46650.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D84793