diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-01-25 21:23:57 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-01-25 21:23:57 +0000 |
| commit | 6fd634b11b5be0126723acf30fe5c7c65c1cbee3 (patch) | |
| tree | a4189db5c4bb02d6917dfd2de82742d349c1e377 /llvm/test | |
| parent | 4abd60ab64b72bc1997f4576461b801e6e2ca3ac (diff) | |
| download | bcm5719-llvm-6fd634b11b5be0126723acf30fe5c7c65c1cbee3.tar.gz bcm5719-llvm-6fd634b11b5be0126723acf30fe5c7c65c1cbee3.zip | |
[X86] Teach Intel syntax InstPrinter to print lock prefixes that have been parsed from the asm parser.
The asm parser puts the lock prefix in the MCInst flags so we need to check that in addition to TSFlags. This matches what the ATT printer does.
llvm-svn: 323469
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/X86/x86-32-coverage.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/X86/x86-32-coverage.s b/llvm/test/MC/X86/x86-32-coverage.s index 03be55fa4be..09e147fd162 100644 --- a/llvm/test/MC/X86/x86-32-coverage.s +++ b/llvm/test/MC/X86/x86-32-coverage.s @@ -10774,3 +10774,9 @@ btcl $4, (%eax) // CHECK: clzero // CHECK: encoding: [0x0f,0x01,0xfc] clzero + +// CHECK: lock addl %esi, (%edi) +// INTEL: lock add dword ptr [edi], esi +// CHECK: encoding: [0xf0,0x01,0x37] + lock add %esi, (%edi) + |

