diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-05-28 23:40:46 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-05-28 23:40:46 +0000 |
commit | 2265ba071762b461ed1e65ebd73f596a98208f60 (patch) | |
tree | 12961df453e2c0405f6fb6daf20d2216d238b3c2 /lib/Target/X86/X86InstrSSE.td | |
parent | 056dbd0645875b69e825bf04f5360856eb3f0ece (diff) | |
download | external_llvm-2265ba071762b461ed1e65ebd73f596a98208f60.zip external_llvm-2265ba071762b461ed1e65ebd73f596a98208f60.tar.gz external_llvm-2265ba071762b461ed1e65ebd73f596a98208f60.tar.bz2 |
The MONITOR and MWAIT instructions have insufficient information for
decoding. Essentially, they both map to the same column in the "opcode
extensions for one- and two-byte opcodes" table in the x86 manual. The RawFrm
complicates decoding this.
Instead, use opcode 0x01, prefix 0x01, and form MRM1r. Then have the code
emitter special case these, a la [SML]FENCE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrSSE.td')
-rw-r--r-- | lib/Target/X86/X86InstrSSE.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 83eae18..1fafa46 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -2504,9 +2504,9 @@ let Constraints = "$src1 = $dst" in { } // Thread synchronization -def MONITOR : I<0xC8, RawFrm, (outs), (ins), "monitor", +def MONITOR : I<0x01, MRM1r, (outs), (ins), "monitor", [(int_x86_sse3_monitor EAX, ECX, EDX)]>,TB, Requires<[HasSSE3]>; -def MWAIT : I<0xC9, RawFrm, (outs), (ins), "mwait", +def MWAIT : I<0x01, MRM1r, (outs), (ins), "mwait", [(int_x86_sse3_mwait ECX, EAX)]>, TB, Requires<[HasSSE3]>; // vector_shuffle v1, <undef> <1, 1, 3, 3> |