[X86] Force VIA PadLock crypto instructions to emit a 0xF3 prefix when they encode...
authorCraig Topper <craig.topper@intel.com>
Thu, 11 Jun 2020 19:45:54 +0000 (12:45 -0700)
committerCraig Topper <craig.topper@intel.com>
Thu, 11 Jun 2020 19:59:21 +0000 (12:59 -0700)
commit8fa3e8fa149203279dba9f4ace99575471cb46ac
tree2657f7f56f3b08740810d08a8f1abc20c88383b0
parent6239d67001843722cb5d6e08d4368492fa5dbd9e
[X86] Force VIA PadLock crypto instructions to emit a 0xF3 prefix when they encode to match what GNU as does.

The spec for these says they need 0xf3 but also mentions REP
before the mnemonic. But I don't think its fair to users to make
them write REP first. And gas doesn't make them. objdump seems to
disassemble with or without the prefix and just prints any 0xf3
as REP.
llvm/lib/Target/X86/X86InstrSystem.td
llvm/test/MC/X86/padlock.s