diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-30 17:37:31 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-30 17:37:31 +0000 |
commit | ee2f195dd3e40f49698ca4dc2666ec09c770e80d (patch) | |
tree | 66fa9a69e5789356dfe844991e64bac9222f3a35 /utils/TableGen/X86FoldTablesEmitter.cpp | |
parent | ab44ce3d598882e51a25eb82eb7ae6308de85ae6 (diff) |
Diffstat (limited to 'utils/TableGen/X86FoldTablesEmitter.cpp')
-rw-r--r-- | utils/TableGen/X86FoldTablesEmitter.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/TableGen/X86FoldTablesEmitter.cpp b/utils/TableGen/X86FoldTablesEmitter.cpp index f211a8fab975..99429c5f96a2 100644 --- a/utils/TableGen/X86FoldTablesEmitter.cpp +++ b/utils/TableGen/X86FoldTablesEmitter.cpp @@ -77,7 +77,14 @@ const char *const NoFoldSet[] = { "TCRETURNri64", "TCRETURNmi64", // Special dealing (in X86InstrCompiler.td under "TCRETURNri", // "tailcall stuff" section). - "TCRETURNmi" + "TCRETURNmi", + + // Never fold XCHG, the register and memory forms have different locking + // semantics. + "XCHG8rr", "XCHG8rm", + "XCHG16rr", "XCHG16rm", + "XCHG32rr", "XCHG32rm", + "XCHG64rr", "XCHG64rm", // Different calculations of the folded operand between // memory and register forms (folding is illegal). |